reddice
reddice copied to clipboard
Your configuration of react-hot is deprecated
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 :)