首页 > 解决方案 > 离子 - 离子服务在网络浏览器上失败?

问题描述

我的离子应用程序运行良好,直到昨天,现在它在通过ionic serve命令运行时在浏览器控制台上显示以下错误。我没有对任何模块进行任何更改,但是发生了这种情况,

Uncaught TypeError: Cannot read property 'id' of undefined
    at registerNgModuleType (core.js:34470)
    at core.js:34488
    at Array.forEach (<anonymous>)
    at registerNgModuleType (core.js:34484)
    at new NgModuleFactory$1 (core.js:34651)
    at compileNgModuleFactory__POST_R3__ (core.js:40286)
    at PlatformRef.bootstrapModule (core.js:40609)
    at Module../src/main.ts (main.ts:13)
    at __webpack_require__ (bootstrap:84)
    at Object.0 (main.ts:14)

但是运行ionic serve命令的命令行没有显示任何错误,我试过了npm audit fixnpm install但没有运气。这里有任何帮助吗?

标签: angularionic-framework

解决方案


推荐阅读