Skip to content
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

Cannot resolve module 'react/lib/ReactMount' #563

Closed
koukimetal opened this issue Nov 27, 2016 · 2 comments
Closed

Cannot resolve module 'react/lib/ReactMount' #563

koukimetal opened this issue Nov 27, 2016 · 2 comments
Assignees

Comments

@koukimetal
Copy link

Expected behavior

In dev branch, Some page should appear http://localhost:3000

Actual behavior

I got white page.

Steps to reproduce the problem

npm i
npm start

Many Cannot resolve module 'react/lib/ReactMount' appear

Screenshot/screencast

Attach or link a resource.

--

I found mjohnston/react-native-webpack-server#45
I changed version of react-hot-loader from ^1.3.0 to 3.0.0-beta.6

Then I got another errror

Module build failed: Error: React Hot Loader: The Webpack loader is now exported separately. If you use Babel, we recommend that you remove "react-hot-loader" from the "loaders" section of your Webpack configuration altogether, and instead add "react-hot-loader/babel" to the "plugins" section of your .babelrc file. If you prefer not to use Babel, replace "react-hot-loader" or "react-hot" with "react-hot-loader/webpack" in the "loaders" section of your Webpack configuration.

So I removed react-hot from loaders

Then I got usual page.

I'd like to confirm this problem happens for everyone and whether this fix is correct.
If it's correct, I'll send a pull request.

Environment

  • OS: mac 10.10.5
  • Browser (w/version):
  • User role (client, copilot or manager):
  • Account used:
@vikasrohit
Copy link

Valid issue. Thanks for reporting.

@vikasrohit
Copy link

Temporary solution, until 3.x release of react-hot-loader is not published, is gaearon/react-hot-loader#417 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants