Aurelia, running webpack-dev-server --hot throws e

2019-09-16 05:28发布

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.

enter image description here

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

1条回答
Explosion°爆炸
2楼-- · 2019-09-16 06:03

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.

查看更多
登录 后发表回答