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

Your configuration of react-hot is deprecated #5

Open
rafalschmidt97 opened this issue Nov 9, 2016 · 0 comments
Open

Your configuration of react-hot is deprecated #5

rafalschmidt97 opened this issue Nov 9, 2016 · 0 comments

Comments

@rafalschmidt97
Copy link

rafalschmidt97 commented Nov 9, 2016

Hi,
While doing your tutorial i got a problem with configuration:

ERROR in ./client/index.jsx
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.

My solution (.babelrc):


{
  "presets": ...(your presets)
  "env": {
    "development": {
      "presets": ["react-hmre"]
    }
  }
}

Also you can look at this

I hope my solution will be useful for some of developers :)

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

No branches or pull requests

1 participant