-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support React v16.0 #481
Comments
The blog post is saying that there aren't many breaking changes when coming from 15.6 (https://facebook.github.io/react/blog/2017/09/26/react-v16.0.html#upgrading) |
Is this just a matter of adding Line 47 in ebd84bb
That should be okay for the upcoming 1.0.x release, but the 0.x releases use mixins – are they supported in React 16? |
The current release of the beta on npm has React v15 listed as a dependency. If you upgrade your app to React v16, two versions of React are loaded and chaos ensues. As this has already been fixed on the beta branch, is there any word on pushing a new release to npm? |
There is another repo presents on Github - fork of this one. https://github.com/maccuaa/formsy-react-2. It looks like ready for React 16. AFAIK it was made because of low activity of this one repo. |
Thanks for the link to the fork! Will look forward to it. It's sad that there hasn't happened much recently. |
The other repo doesn't seem to work with formsy-react-components I hope this repo get updated. @twisty what's your take on this? |
Hi @aliogaili, (Speaking as the maintainer of the I agree the stuttered release pattern of Note: I'm not passing any judgment or expressing a preference about any forks here. It's just easier for consumers of |
Thanks @twisty, I also think that's the right path. Looking forward for more releases from |
I agree, I would rather contribute to this project than have to maintain a fork. |
I think i need to put it out there that react-formsy in its current state works fine with React 16. Tested with a basic form and a custom HOC class based textfield control |
Ok I went to the node_modules/formsy-react/node_modules and deleted the react folder and the error went away! when I do npm install again, the folder gets recreated (with react [email protected]) and the error comes back. I'm using NPM 5.4.2. Does anyone know what might be causing this behavior? This might be trivial question, but how are you guys installing the beta version? are using the beta tag from npm? When I do npm install formsy-react@beta npm downloads the package.json file below which has "react": "^15.0.0" as dependency, then npm will install react15 under the formsy-react node_modules folder which will get loaded at the client and result in the equeueCallback exception..am I missing something here?
|
@aliogaili The reason react 15 is getting installed again is that the beta published to npm has react 15 listed as a "I know!", you might think. "I'll just install it straight from the github repo!". Well, this does work, but takes a bit of twiddling. You may not get the built release files (the This installs the latest version of the beta branch, transcodes the source, then removes any yarn add https://github.com/christianalfoni/formsy-react#beta
cd ./node_modules/formsy-react
yarn install
yarn install --production --ignore-scripts I think you'll still get a warning about the react peer dependency, but it should run okay. |
If you download the tar referenced by the resolved url then you'll get a package.json that has react 15 referenced as a dependency (and not peer dependency). Moving react from dependency to peer dependency was done by the last commit here and it has not been published to npm yet, which explains why I keep getting the older package.json with the react 15 as dependency. So how are you folks using the last commit? |
Thank you so much @twisty ! that's what I'm looking for, it was a bit confusing for me, but now it's clear. |
@twisty I've following the steps you gave and I keep getting Formsy-react is in the package.json and in the node_modules folders but the app doesn't start and I receive this exception :( |
Hi @aliogaili, I think technically it's all installed properly, but I think those errors are because the alpha 7 of I've got an alpha ready to go that fixes this, but would prefer to wait for a new release from this repo. I'm hesitant to call out the batsignal for @aesopwolf or another maintainer, but it would really help to get a response or an ETA on this. |
I just downloaded the version currently published on the NPM registry, patched it to remove the react dependency and installed it locally, it's working, for now. But I really hope we can hear soon from the maintainer(s) of formsy-react and we get a newer version on NPM. This is a very useful and well designed library and really not much effort needs to get it up and running. I'm sure more people will run through this issue as they start updating to React 16, so the sooner this get resolved the better. Hopefully, the batsignal does it job :) |
@Semigradsky I see you made contributions to formsy-react, and as it stand it's currently blocking the adoption of React 16 because the last comment has not been published to NPM. @twisty there are two forks of this library due to the inactivity here:
I think both of those forks exist due to the lack of activity here at the moment. I'm blocked from publishing my project because I'm using formsy-react-components which is depending on this version of formsy-react and it's conflicting with React 16. Thus can you please consider aligning with one of the two libraries (or even maintaining your own fork if you wish) until we can get some traction here so we can at least move forward with React 16? Thanks! |
This issue has been moved to the new |
This issue has been SOLVED in the new |
React v16.0 has been released with massive improvements.
The text was updated successfully, but these errors were encountered: