-
Notifications
You must be signed in to change notification settings - Fork 800
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
Problems updating to React 15.4.0 #417
Comments
React Hot Loader 1.x has been unsupported for over a year. |
Hi @gaearon! Sorry, I didn't want to change before a stable version. I switched to 3.x and all works fine. Thank you again! |
3.x is technically more stable than 1.x IMO. |
@gaearon on that topic is there a migration guide? the one i see is migrating TO 1.x not from it |
@gaearon @albertolive better/more documentation, and #391 and #313, possibly a few more under 3.0 milestone |
@th3fallen check out next-docs |
So after spending about 2 hours trying to get v3 to work (unsuccessfully, it would detect changes but say they couldnt be reloaded i assume because they're wrapped with HOC's for redux?) Since v3 is still labeled as a beta would it be possbile to make v1 work until it's the new stable? or is that a big ask? |
@th3fallen can you open a separate issue with a reproduce project?
I don't think so, the focus has been on 3.0 and it has an improved architecture, but still a few bugs. I recommend checking out Dan's blog post. |
As I understand it, you can't just switch to v3 without also adding the bootstrap If there is anyway we could just upgrade and leave that for later, I would appreciate any instructions, because we have a lot of entry points, and this would be a major refactor for us. |
so what is the solution there. roll back react version? |
It doesn't seem very wise to me to roll back a version of a project that is actively being developed (React) in order to keep compatibility with a tool version that was abandoned a long time ago (RHL 1.x). |
If the current approach taken in 3.x doesn't work for you I could see a way to make it work more like 1.x did. But it needs someone to actually work on it. I've been working on hot reloading for a long time and I'd appreciate somebody else taking initiative this time. |
You can use plain Webpack HMR, where you'd still need to add |
@gaearon in the long run, I agree but when you have a set of stuck developer you have to pay... Will try to move to 3.X in parallel. |
You can fork and change react/lib/ReactMount to react-dom/lib/ReactMount if you're stuck. But this will too break someday. |
Thanks for advise |
Adding |
Thanks for advise @jtangelder |
After upgrade to React 15.4 I have error
in IE11. RHL uses RedBox. I've create issue in RedBox for this commissure/redbox-react#82, but I'm no really sure it's RedBox issue. Trying to figure it out. |
Appears related: facebook/react#8379. |
I'll try Den. Currently I've figured out that only dev build with RHL included is affected. Production build with React 15.4 is okay. |
@jtangelder good idea |
In React 15.4.0 facebook completely removed ReactDOM from React package itself. React-Hot-Loader depends on some internal libs inside react package which made it imposible to use since version 15.4 arrived. To work around this issue I had to make some changes which led to only support react 15.4+ in aik. Related links: https://facebook.github.io/react/blog/2016/11/16/react-v15.4.0.html gaearon/react-hot-loader#417 (comment) Since this commit react-hot-loader (-r option) works only for react 15.4+
Fixed in 1.3.1 by #430. This will be the last 1.X release, and |
By the way I've found out what was the problem with IE11: problem was within code in node_modules which is excluded in babel loader in webpack (for performance reasons):
At first react requires it when there is no Still do not understand why it happened, but adding UP: even simpler solution https://github.com/thejameskyle/babel-react-optimize/issues/16#issuecomment-263519239 |
As for IE11 problem, also see this: facebook/react#8379 (comment). |
what should i do ?update version to 3 @gaearon i have some question, thx your code.
|
Updating to 3 did not fix the problem. I still get ERROR in ./js/components/inputs/maskedInput.jsx going to try the alias suggestion. |
Upgrading to records.chunkModuleIds[chunk.id] = chunk.mapModules(m => m.id);
chunk.sortModules is not a function |
@rodoabad - it sounds like webpack, not RHL. |
Hi @gaearon, as you mentioned in this previous post, apps should not rely on internal APIs. I checked into my node_modules folder and I found that this project requires ReactMount. It's in here
What can I do?
Thank you!
The text was updated successfully, but these errors were encountered: