首页 > 解决方案 > 放大 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'.

在我的代码中一切看起来都很好,不确定这个错误。我在谷歌上进行了研究,但找不到太多。让我知道是否有人遇到此问题并知道解决方法。

标签: angularamazon-web-servicesangular7aws-amplify

解决方案


推荐阅读