问题描述
我下载了Aurelia导航骨架的新副本 github回购.我执行映射到cross-env NODE_ENV=development npm run webpack-dev-server -- --inline --progress --profile --watch --hot
的npm run server:dev:hot
.
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
.
webpack服务器启动正常,我在控制台中看到[HMR]正在等待WDS信号.一切都很好,直到我在js文件中进行更改以触发HMR刷新为止.然后,我在控制台中看到错误/警告.
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.
推荐答案
嗯,事实证明这是预期的. Aurelia尚未启用HMR.
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/
等不及了.
这篇关于Aurelia,运行webpack-dev-server --hot在应用程序热更新上引发错误-'无法读取未定义的属性'status''的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!