WEBPACK_IMPORTED_MODULE XhrIoPool不是构造函数

时间:2019-03-08 19:26:43

标签: angular firebase ionic-framework webpack

TypeError: __WEBPACK_IMPORTED_MODULE_0__firebase_webchannel_wrapper__.XhrIoPool is not a constructor
    at new WebChannelConnection (http://localhost :8100/build/vendor.js:155972:21)
    at BrowserPlatform.loadConnection (http ://localhost: 8100/build/vendor.js:155873:32)
    at FirestoreClient.initializeRest (http ://localhost:8 100/build/vendor.js:158035:14)
    at http://loc alhost :8100/build/vendor.js:157926:54
    at t.invoke (http ://localhos t:8100/build/polyfills.js:3:14976)
    at Object.onInvoke (http://loca lhost:8100/build/vendor.js:5445:33)
    at t.invoke (http ://local ost:8100/build/polyfills.js:3:14916)
    at r.run (http://localho st:8100/build/polyfills.js:3:10143)
    at http ://localhost:81 00/build/polyfills.js:3:20242
    at t.invokeTask (http: //localhost:8100/build/polyfills.js:3:15660)

1 个答案:

答案 0 :(得分:0)

该错误似乎与@ firebase / channel-wrapper的错误版本有关 看到这个github issue comment

解决方法:

npm uninstall @firebase/webchannel-wrapper@0.2.20;
npm install @firebase/webchannel-wrapper@0.2.7;
npm start;