小编Dha*_*hik的帖子

Angular 8 ng build --prod 在“Injectable”的模板编译期间给出错误

我从 angular 6 升级到 8 并更新了项目中使用的所有库。一切似乎都运行良好,但是当我使用 ng build --prod 时,出现这些错误

ERROR in Error during template compile of 'Injectable'
  Function calls are not supported in decorators but '?makeDecorator' was called.
Error during template compile of 'Directive'
  Function calls are not supported in decorators but '?makeDecorator' was called.
Error during template compile of 'NgModule'
  Function calls are not supported in decorators but '?makeDecorator' was called.
Error during template compile of 'Injectable'
  Function calls are not supported in decorators but '?makeDecorator' was called. …
Run Code Online (Sandbox Code Playgroud)

typescript angular angular8

6
推荐指数
2
解决办法
4645
查看次数

标签 统计

angular ×1

angular8 ×1

typescript ×1