Aurelia, running webpack-dev-server --hot throws error on App Hot Update - 'Cannot read property 'status' of undefined'

余生颓废 提交于 2019-12-25 07:39:17

问题


I downloaded a fresh copy of the Aurelia Navigation Skeleton github repo . I execute the npm run server:dev:hot, which is mapped to cross-env NODE_ENV=development npm run webpack-dev-server -- --inline --progress --profile --watch --hot.

The webpack-server starts fine, I see in the console [HMR] is waiting for WDS signal. Everything is fine until I make a change in in a js file to trigger HMR refresh. Then I see an error/warning in the console.

I haven't modified anything in the code from the repo.


回答1:


Well, it turns out that this is expected. Aurelia doesn't have HMR enabled yet.

https://github.com/aurelia/skeleton-navigation/issues/629

http://blog.aurelia.io/2016/12/08/big-aurelia-release-update/

Can't wait for the update.



来源:https://stackoverflow.com/questions/41307574/aurelia-running-webpack-dev-server-hot-throws-error-on-app-hot-update-cann

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!