angular - 放大 Angular 7 构建错误 - 'NgModule' 调用'ɵmakeDecorator'
问题描述
我在我的 Angular 7 应用程序中使用 AWS Amplify 包。它适用于 ng serve。但是当尝试使用 ng build -- prod 构建时,它会给出以下错误
ERROR in aws-amplify-angular\dist\src\aws-amplify-angular.module.ts(82,2): Error during template compile of 'AmplifyAngularModule'
Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'NgModule'
'NgModule' calls 'ɵmakeDecorator'.
在我的代码中一切看起来都很好,不确定这个错误。我在谷歌上进行了研究,但找不到太多。让我知道是否有人遇到此问题并知道解决方法。
解决方案
推荐阅读
- android - Android 5 上的 AppCompatButton:app:backgroundTint 有效,但 supportBackgroundTintList 无效:(
- php - 将查询从 laravel eloquent 转换为原始 sql
- python - Python Pandas - 即使跨数据帧存在相同的列,pd.merge 上的 KeyError
- angular - Bearer Token 在 Postman 上工作,但不在 localhost
- bash - 通过 echo 命令使用变量中的数据发送电子邮件
- reactjs - 使用 react-jss 添加动态样式时出现格式错误的 CSS 字符串错误
- excel - Excel 宏在 240 个字符标记处添加 HTML 粗体标签“中断”
- javascript - 在 Vue.js 中使用 JS 将组件挂载到 DOM 中
- c# - 如何解决加入问题显示相同的结果
- ajax - Ajax 提交时出现 500 内部服务器错误