angular - @angular-redux/form/angular-redux-form.ts(3,32) 中的错误:“composeReducers”模板编译期间出错
问题描述
我已将 Angular 应用程序从 8 更新到 9,在我运行应用程序更新后,它给了我一个错误
ERROR in @angular-redux/form/angular-redux-form.ts(3,32): Error during template compile of 'composeReducers'
Function expressions are not supported in decorators
Consider changing the function expression into an exported function.
在编译部分 enableIvy 为 false
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableIvy": false
}
这是包裹
"@angular-redux/form": "^10.0.0",
"@angular-redux/router": "^10.0.0",
"@angular-redux/store": "^10.0.0",
"@angular/animations": "~9.1.12",
"@angular/common": "~9.1.12",
"@angular/compiler": "~9.1.12",
"@angular/core": "~9.1.12",
"@angular/forms": "~9.1.12",
解决方案
推荐阅读
- c++ - 我的项目的属性配置正确,但Visual Studio仍然无法打开包含头文件
- c - 如何在C中将a字符串拆分为单独的单词,其中空格不是恒定的?
- powerbi - 根据月份和年份列计算工作日数 - DAX
- python - 在 python 中模拟 Elasticsearch API
- php - Wordpress:允许上传媒体中的 zip 文件
- jenkins-pipeline - jenkins 共享库 groovy 类是否支持 groovy trait
- swift - Swift,如何从 HTTP 请求返回数据?
- node.js - Angular 8 ajax有时很慢
- javascript - 如何在 Chart.js 中调用 destroy() 方法?
- javascript - 控制台 chrome 检查元素中没有输出(Webpack 配置)