我从 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)