We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
react-dom
The CLI's hardcoded version of react-dom is incompatible with the version of React installed by RN 0.45.1.
Reproduction
# install latest RN npm install -g react-native-cli # create RN app react-native init MyApp # add storybook cd MyApp getstorybook # try running storybook npm run storybook
You will get an error due to incompability between [email protected] and [email protected]:
[email protected]
ERROR in ./~/react-dom/lib/ReactMount.js Module not found: Error: Can't resolve 'react/lib/React' in '/private/tmp/TesterMeTester/node_modules/react-dom/lib' @ ./~/react-dom/lib/ReactMount.js 17:12-38 @ ./~/react-dom/lib/ReactDOM.js @ ./~/react-dom/index.js @ ./~/@storybook/ui/dist/modules/ui/routes.js @ ./~/@storybook/ui/dist/modules/ui/index.js @ ./~/@storybook/ui/dist/index.js @ ./~/@storybook/react-native/dist/manager/index.js @ multi ./storybook/addons.js ./~/@storybook/react-native/dist/manager/index.js ...etc..
Update the reference of react-dom in package.json and it should run again (modulo #1280)
package.json
The text was updated successfully, but these errors were encountered:
@tmeasday I have confirmed the problem and the fix. 👍
Sorry, something went wrong.
OK, I guess we should figure out the version of react-dom based on the react version in package.json?
react
Is it fixed? I still get the error when running 3.1.4.
Hi @Fanghao, no, but it is easily fixed on a case-by-case basis. Just run npm upgrade react-dom in your app.
npm upgrade react-dom
Ensure we add the correct version of react-dom
928ea5e
We need to use an equal version to the `react` version the app is using. #1284
Fixed in 3.1.6!
tmeasday
No branches or pull requests
The CLI's hardcoded version of
react-dom
is incompatible with the version of React installed by RN 0.45.1.Reproduction
You will get an error due to incompability between
[email protected]
and[email protected]
:Update the reference of
react-dom
inpackage.json
and it should run again (modulo #1280)The text was updated successfully, but these errors were encountered: