【发布时间】:2021-05-20 00:42:13
【问题描述】:
当我执行ng s --open 命令时,我收到浏览器控制台错误。但是节点终端没有错误
Uncaught TypeError: Cannot read property 'id' of undefined at registerNgModuleType (core.js:30235) at core.js:30253 at Array.forEach (<anonymous>) at registerNgModuleType (core.js:30249) at core.js:30253 at Array.forEach (<anonymous>) at registerNgModuleType (core.js:30249) at new NgModuleFactory$1 (core.js:30387) at compileNgModuleFactory__POST_R3__ (core.js:34669) at PlatformRef.bootstrapModule (core.js:34966)
但是当我使用ng build --prod 构建应用程序时没有错误
错误的原因可能是什么,因为相同的代码正在执行我的另一台机器
应用程序也没有进行任何 API 调用
【问题讨论】:
标签: angular typescript ivy