gpt4 book ai didi

javascript - ionic 服务后找不到模块(webpack)/hot/emitter @angular-devkit/build-angular - Ionic 4

转载 作者:行者123 更新时间:2023-12-01 15:30:36 26 4
gpt4 key购买 nike

堆:

  • 节点 v10.15.1
  • ionic 4.10.1

  • 当我运行 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'



    编译失败。

    找不到这个问题的答案。

    我尝试过了:
  • 更新@angular-devkit/build-angular
  • npm install webpack-hot-dev-clients
  • npm install -g webpacknpm install -g webpack-dev-server根据建议 here
  • npm link wepack
  • 我还尝试更新我的 Angular CLI

  • 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/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com