Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error running with React 15.4 #73

Closed
jasanst opened this issue Oct 15, 2016 · 2 comments
Closed

Error running with React 15.4 #73

jasanst opened this issue Oct 15, 2016 · 2 comments

Comments

@jasanst
Copy link

jasanst commented Oct 15, 2016

If you have react@15.4.0-rc.4 installed redbox-react will fail with a file not found error.

ERROR in ./~/redbox-react/~/react-dom/index.js
Module not found: Error: Can't resolve 'react/lib/ReactDOM'

Redbox-react installs 15.3 which depends on the project level React version, 15.4 has changed the structure and this file is now in ReactDOM itself.

@wellyshen
Copy link

I have the same problem :(

@gaearon
Copy link
Contributor

gaearon commented Oct 15, 2016

This is because redbox-react should have included react-dom in peerDependencies rather than dependencies.

If you have this issue, just delete node_modules/redbox-react/node_modules/react-dom and it will work.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants