2017-10-14 63 views
2

我想在我的角度项目运行AOT编译,但是当我运行命令角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 

我怎么能知道在这个文件中,错误是什么,错误是什么?

+0

你有这个问题的复制? – yurzui

+0

@yurzui你是什么意思的复制?这是一个非常大的项目,基于Jhipster,我不知道从哪里开始debbuging –

回答

1

最近,我们有同样的问题对我们来说是从缺少位置进口@角/共同模块。