ionic3 - 离子错误未处理的承诺拒绝:对象(...)不是一个函数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)
解决方案
推荐阅读
- node.js - 部署我的应用程序的新版本时丢失的请求
- ios - FFPopup Pod:不使用时隐藏弹出窗口
- python - 在 spotipy 搜索方法中显示带有 preview_url 和曲目名称和图像的歌曲
- sapper - Sapper/Svelte 在另一个组件完成发布后更新组件内的状态
- c# - Identity Server 3 - invalid_grant - 已使用刷新令牌
- excel - Excel VBA:删除文件夹中的任何空 Excel 文件
- node.js - 贝宝窗口不显示多个项目
- javascript - 如何在 JS 中创建元素 HTML 并在聊天的消息框顶部对齐名称
- python - Python 现有连接被远程主机强行关闭 Pandas 读取 SQL 和 to sql 函数不同的数据库
- machine-learning - 使用 NLP 查找自定义实体