我正在尝试在我的 Angular 项目上运行 AOT 编译,但是当我运行命令时
"./node_modules/.bin/ngc" -p tsconfig-aot.json
我收到以下错误:
Error: Internal error: unknown identifier undefined
at Object.importExpr$$1 [as importExpr] (..\node_modules\@angular\compiler\bundles\compiler.umd.js:24071:23)
at tokenExpr ..\node_modules\@angular\compiler\bundles\compiler.umd.js:18428:39)
at providerDef (..\node_modules\@angular\compiler\bundles\compiler.umd.js:18331:20)
at ..\node_modules\@angular\compiler\bundles\compiler.umd.js:18548:77
at Array.map (native)
at NgModuleCompiler.compile (..\node_modules\@angular\compiler\bundles\compiler.umd.js:18548:44)
at AotCompiler._compileModule (..\node_modules\@angular\compiler\bundles\compiler.umd.js:24004:32)
at ..\node_modules\@angular\compiler\bundles\compiler.umd.js:23916:66
at Array.forEach (native)
at AotCompiler._compileImplFile (..\node_modules\@angular\compiler\bundles\compiler.umd.js:23916:19) Compilation failed
我如何知道错误在哪个文件中以及错误是什么?