abcnews / aunty

A toolkit for working with ABC News projects
https://www.npmjs.com/package/@abcnews/aunty
MIT License
32 stars 5 forks source link

Hot reload randomly reloads entire page #73

Closed phocks closed 6 years ago

phocks commented 6 years ago

I've tested new projects Basic, Preact, React and Vue. Strangely Vue projects seem to get this error less than the others.

How to replicate:

Create new project run aunty serve Go to address and open console Change text in App component and save. Do this around 5 times and you should get at least 1 or 2 errors.

Sometimes the component updates normally. Sometime the whole page reloads. And we get this error:

[WDS] Hot Module Replacement enabled.
4VM492 client:74 [WDS] App updated. Recompiling...
VM492 client:218 [WDS] App hot update...
VM517 log.js:24 [HMR] Checking for updates on the server...
VM492 client:218 [WDS] App hot update...
VM517 log.js:24 [HMR] Updated modules:
VM517 log.js:24 [HMR]  - ./src/components/App/index.js
VM517 log.js:26 [HMR] Cannot find update. Need to do a full reload!
VM517 log.js:26 [HMR] (Probably because of restarting the webpack-dev-server)

Update: I tried it in Safari and I got the same thing, but with this extra error message

Failed to load resource: the server responded with a status of 404 (Not Found) http://ws204914.aus.aunty.abc.net.au:8000/3a7a6c7f6882783aa162.hot-update.json