【发布时间】:2019-03-28 06:52:01
【问题描述】:
我正在尝试对我的 Angular 4 项目进行 --aot 编译。
我的 tsconfig.json 文件是
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": false,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}
我使用的命令是ng build --aot
我正在使用一个名为 bp-datepicker 的插件,它在 aot 编译时出错,尽管它在 JIT 编译时工作正常。
no such file or directory, open 'pathroproject\project\node_modules\bp-datepicker\bp-datepicker.component.html'
angular-cli 版本: "@angular/cli": "1.3.1",
角核心版本: "@angular/core": "^4.2.4",
【问题讨论】:
标签: angular node-modules angular2-aot