javascript - 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)
解决方案
推荐阅读
- python-3.x - 在 tkinter 中的不同帧之间切换
- ios - 如何让 UIVIew.transform 和 UIVIew.traitCollection 一起工作?
- java - 在每个 Recycler 视图中添加自定义布局的问题
- api - 如何在 YouTube API 的帮助下提取每日观看次数和订阅人数
- c# - 弹出损坏指示器
- javascript - 把整个网站的不透明度调低除了一个元素onclick
- android - 材质卡视图描边颜色未应用
- r - tufte Rmarkdown中的gt表对齐
- c - 自定义内核不读取全局变量和 char*
- python - Django - 类函数不返回页面