首页 > 解决方案 > 离子错误未处理的承诺拒绝:对象(...)不是一个函数Promise。那么不是ionic3中的函数吗?

问题描述

我已经在 ionic 3 中创建了应用程序,但是在 ionic serve 出现上述错误后出现错误我有谷歌它并尝试通过不同的帖子解决错误但问题没有解决?

用于再现的设置:-

npm i @ngx-translate/core@9.1.1

polyfills.js:3 Unhandled Promise rejection: Object(...) is not a function ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Object(...) is not a function
at new ApplicationRef (vendor.js:15312)
at _createClass (vendor.js:18294)
at _createProviderInstance (vendor.js:18256)
at initNgModule (vendor.js:18189)
at new NgModuleRef_ (vendor.js:18916)
at Object.createNgModuleRef (vendor.js:18905)
at NgModuleFactory_.create (vendor.js:21464)
at vendor.js:15117
at t.invoke (polyfills.js:3)
at Object.onInvoke (vendor.js:14655) TypeError: Object(...) is not a function
at new ApplicationRef (http://localhost:5000/build/vendor.js:15312:64)
at _createClass (http://localhost:5000/build/vendor.js:18294:20)
at _createProviderInstance (http://localhost:5000/build/vendor.js:18256:26)
at initNgModule (http://localhost:5000/build/vendor.js:18189:32)
at new NgModuleRef_ (http://localhost:5000/build/vendor.js:18916:9)
at Object.createNgModuleRef (http://localhost:5000/build/vendor.js:18905:12)
at NgModuleFactory_.create (http://localhost:5000/build/vendor.js:21464:25)
at http://localhost:5000/build/vendor.js:15117:43
at t.invoke (http://localhost:5000/build/polyfills.js:3:14976)
at Object.onInvoke (http://localhost:5000/build/vendor.js:14655:33)

标签: ionic3

解决方案


推荐阅读