堆:
当我运行
ionic serve
我得到:ERROR in (webpack)/hot/emitter.js [ng] Module not found: Error: Can't resolve 'events' in '/zazou/node_modules/@angular-devkit/build-angular/node_modules/webpack/hot'
编译失败。
找不到这个问题的答案。
我尝试过了:
npm install webpack-hot-dev-clients
npm install -g webpack
和 npm install -g webpack-dev-server
根据建议 here npm link wepack
Similar question
最佳答案
使用 npm 安装事件。
npm install events
或者要保存其他人(例如存储库用户),请运行:npm install events --save --dev
关于javascript - ionic 服务后找不到模块(webpack)/hot/emitter @angular-devkit/build-angular - Ionic 4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54555258/