react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

React Hot Loader isn't configured correctly #298

Open maxpavlovdp opened 7 years ago

maxpavlovdp commented 7 years ago

Have next warning in chrome dev tool: RootInstanceProvider.js?c5b5:10 It appears that React Hot Loader isn't configured correctly. If you're using NPM, make sure your dependencies don't drag duplicate React distributions into their node_modules and that require("react") corresponds to the React instance you render your app with. If you're using a precompiled version of React, see https://github.com/gaearon/react-hot-loader/tree/master/docs#usage-with-external-react for integration instructions.warnOnce @ RootInstanceProvider.js?c5b5:10getRootInstances @ RootInstanceProvider.js?c5b5:34(anonymous function) @ VM405:1forceUpdateAll @ requestForceUpdateAll.js?07b1:18

With next configuration page is reloaded without such warning: "devserver": "webpack-dev-server --debug --hot --devtool eval-source-map --output-pathinfo --watch --colors --inline --content-base public --port 8090 --host 127.0.0.1"

brianzhou13 commented 7 years ago

I've just encountered this warning while using defaultProps. Once I removed them, the error went away.