从AOT编译中排除文件

时间:2018-11-20 07:00:06

标签: angular6 angular-aot angular-builder

正在运行命令

ng build --prod

我出错了

ERROR in 

src\app\protected\property\evaluation\evaluation.component.html(188,37): : Property 'symbol' does not
exist on type 'EvaluationComponent'.
src\app\protected\property\evaluation\evaluation.component.html(188,37): : Property 'symbol' does not exist on
type 'EvaluationComponent'.

我想忽略该文件,并尝试在tsrc / tsconfig.json和tsconfig.json中添加ts和html,但是在运行命令时仍然出现错误

有人可以建议我在运行命令时忽略该文件,而不检查该文件中的错误吗?

app / tsconfig.json

  "exclude": [
    "src/test.ts",
    "**/*.spec.ts",
    "src/app/protected/property/evaluation/evaluation.component.ts",
    "src/app/protected/property/evaluation/evaluation.component.html"


  ]

0 个答案:

没有答案