reddice icon indicating copy to clipboard operation
reddice copied to clipboard

Your configuration of react-hot is deprecated

Open rafalschmidt97 opened this issue 8 years ago • 0 comments

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 :)

rafalschmidt97 avatar Nov 09 '16 23:11 rafalschmidt97