离子 - 离子服务在网络浏览器上失败?

时间:2021-05-14 05:34:24

标签: angular ionic-framework

我的 ionic 应用程序运行良好,直到昨天,现在它在通过 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,但没有成功。有什么帮助吗?

0 个答案:

没有答案