我在Mac上遇到以下提到的错误:
Error: Cannot find module "@firebase/polyfill"
at webpackMissingModule (http://localhost:8100/build/vendor.js:71203:65)
at Object.<anonymous> (http://localhost:8100/build/vendor.js:71203:160)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
at Object.<anonymous> (http://localhost:8100/build/vendor.js:71154:71)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
at Object.<anonymous> (http://localhost:8100/build/vendor.js:109392:79)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
at Object.<anonymous> (http://localhost:8100/build/vendor.js:109376:72)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
at Object.<anonymous> (http://localhost:8100/build/vendor.js:36504:70)
工作环境: cli包:(/ usr / local / lib / node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
全球套餐:
cordova (Cordova CLI) : 7.1.0
本地包裹:
@ionic/app-scripts : 2.1.4
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2
系统:
Node : v8.9.1
npm : 5.1.0
OS : macOS Sierra
Xcode : Xcode 9.1 Build version 9B55
这个问题有解决办法吗?
答案 0 :(得分:1)
此错误已修复。
npm install @ firebase / polyfill