You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create React App does not support hot module replacement for anything other than CSS. Did you copy and paste some code with module.hot into your project?
My project cloned from react-redux-starter-kit a few months ago, and used that starter-kit's boot code in src folder to initialize react/redux etc.. Yesterday I created new project structure with create-react-app, and used code, then the problem happened.
Now it works fine, and project is very clean, love this. Just waiting for Hot Module Reload, then it's perfect.
Activity
gaearon commentedon Sep 10, 2016
Create React App does not support hot module replacement for anything other than CSS. Did you copy and paste some code with
module.hot
into your project?cpunion commentedon Sep 11, 2016
Yes, I found it. My project clone from
react-redux-starter-kit
, the code about hot reloading is https://github.com/davezuko/react-redux-starter-kit/blob/master/src/main.js#L57-L84 .I removed that block, seems solved this problem.
Thanks!
gaearon commentedon Sep 11, 2016
This project has no relation to that starter kit.
Give Create React App a try, maybe you won't need starter kits anymore 😉
cpunion commentedon Sep 11, 2016
Already used
create-react-app
, it's great.My project cloned from
react-redux-starter-kit
a few months ago, and used that starter-kit's boot code insrc
folder to initialize react/redux etc.. Yesterday I created new project structure withcreate-react-app
, and used code, then the problem happened.Now it works fine, and project is very clean, love this. Just waiting for Hot Module Reload, then it's perfect.
Thanks again for your great work.
cpunion commentedon Sep 11, 2016
BTW: Had another little problem, I used
pace.js
to got a better loading experience, but it can't be linked inindex.html
, some errors raised:Content of index.html:
It must be loaded quickly, shouldn't
require
it in project's code.gaearon commentedon Sep 11, 2016
Can you please create a new issue about this with an example (preferably on GH) reproducing the problem? Thanks.
cpunion commentedon Sep 11, 2016
@gaearon Created: #625