-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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 #8302
Comments
Hi, thanks for the report. You need to find the library that imports
We warned about this change a month ago so most libraries that reached into the internal APIs could be updated. This issue is not actionable for us so I will close it. Webpack should print the name of the module that tried to import As a temporary fix that library could start importing |
@gaearon From what I can tell, that require is coming from prependText = [
'/* REACT HOT LOADER */',
'if (module.hot) {',
'(function () {',
'var ReactHotAPI = require(' + JSON.stringify(require.resolve('react-hot-api')) + '),',
'RootInstanceProvider = require(' + JSON.stringify(require.resolve('./RootInstanceProvider')) + '),',
'ReactMount = require("react/lib/ReactMount"),',
'React = require("react");',
'module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(function () {',
'return RootInstanceProvider.getRootInstances(ReactMount);',
'}, React);',
'})();',
'}',
'try {',
'(function () {',
].join(' '); |
React Hot Loader 1.x has been unsupported for about a year by now. Please use 3.x which should work without reaching into internal modules. |
Hey @gaearon , fair enough. Thanks! Might be off-topic, but will there be an official stable release of 3.x in the near future? To be fair I did miss the documentation where it mentioned the requirement to use 3.x, but it still feels a bit unintuitive to be forced to use a pre-release/beta version. |
Please reach out to project maintainers about this. I can't say because I'm not actively involved right now. |
I'm getting this error with in all my files:
I'm using the latest version of react: 15.4.0.
webpack: 1.12.11
Any help?
The text was updated successfully, but these errors were encountered: