首页 > 解决方案 > Angular 4 - 未处理的承诺拒绝:对象(...)不是函数;区:

问题描述

我不知道突然发生了什么,但现在我面临一些问题。直到那时应用程序运行良好。但是现在每当我尝试从 android studio 或 xcode 运行应用程序时,我都会在 chrome 控制台上看到以下错误。我做了一些研究,但找不到任何东西。如果有人可以帮助我,那就太好了。我没有使用任何类型的 http 服务。

项目的当前配置 - 1. ionic - v3 2. Angular - 4 3. Cordova

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:5187)
    at _createClass (vendor.js:8954)
    at _createProviderInstance (vendor.js:8916)
    at initNgModule (vendor.js:8849)
    at new NgModuleRef_ (vendor.js:9575)
    at createNgModuleRef (vendor.js:9564)
    at Object.debugCreateNgModuleRef [as createNgModuleRef] (vendor.js:11389)
    at NgModuleFactory_.create (vendor.js:12091)
    at vendor.js:4987
    at t.invoke (polyfills.js:3) TypeError: Object(...) is not a function
    at new ApplicationRef (file:///android_asset/www/build/vendor.js:5187:64)
    at _createClass (file:///android_asset/www/build/vendor.js:8954:20)
    at _createProviderInstance (file:///android_asset/www/build/vendor.js:8916:26)
    at initNgModule (file:///android_asset/www/build/vendor.js:8849:32)
    at new NgModuleRef_ (file:///android_asset/www/build/vendor.js:9575:9)
    at createNgModuleRef (file:///android_asset/www/build/vendor.js:9564:12)
    at Object.debugCreateNgModuleRef [as createNgModuleRef] (file:///android_asset/www/build/vendor.js:11389:12)
    at NgModuleFactory_.create (file:///android_asset/www/build/vendor.js:12091:25)
    at file:///android_asset/www/build/vendor.js:4987:43
    at t.invoke (file:///android_asset/www/build/polyfills.js:3:14976)

标签: javascriptangularcordovaangular6

解决方案


推荐阅读