gatsby: Hot module replacement not working with the default starter
Windows 10, Chrome 60.0.3112.90. I run:
gatsby new gatsby-site
cd gatsby-site
gatsby develop
I edit the file src/pages/index.js from <h1>Hi people</h1> to <h1>Hi people 123</h1>. No change is shown in the browser unless I refresh the page. No error is shown on the command line, only:
DONE Compiled successfully in 379ms 9:40:47 AM
I Your site is running at http://localhost:8000
I Your graphql debugger is running at http://localhost:8000/___graphql
Only the following js errors are reported on the web page itself:
lowPriorityWarning.js:40 Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs
printWarning @ lowPriorityWarning.js:40
:8000/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 28 (9 by maintainers)
I find out hot reloading works with plugins and transformers but if you change data in your react component, it’s not working.
This should be fixed now https://github.com/gatsbyjs/gatsby/pull/2983
@KyleAMathews The issue is that on Windows,
localhostshould be used instead of0.0.0.0for development. Since some update which happened during the last few days, all of my webpack-imported resources are being loaded from0.0.0.0, which is incorrect for Windows users.