首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“formDirective”在类“”ControlContainer“”中定义为访问器,但在“”ConnectArrayDirective“”中被重写为实例属性

“formDirective”在类“”ControlContainer“”中定义为访问器,但在“”ConnectArrayDirective“”中被重写为实例属性
EN

Stack Overflow用户
提问于 2020-09-07 15:14:39
回答 1查看 567关注 0票数 3

将angular 9更新到最新版本后("@angular/core":"~11.0.0-next.0",)。我得到了下面的错误,但是,我已经更新了最新版本的@angular-redux/form, @angular-redux/router and @angular-redux/store

代码语言:javascript
复制
"@angular-redux/form": "^10.0.0",
"@angular-redux/router": "^10.0.0",
"@angular-redux/store": "^10.0.0",

角度更新

代码语言:javascript
复制
"@angular/common": "~11.0.0-next.0",
"@angular/compiler": "~11.0.0-next.0",
"@angular/core": "~11.0.0-next.0",
"@angular/forms": "~11.0.0-next.0",

错误

代码语言:javascript
复制
 ERROR in node_modules/@angular-redux/form/connect-array/connect-array.directive.d.ts:22:14 - error TS2610: 'formDirective' is defined as an accessor in class 'ControlContainer', but is overridden here in 'ConnectArrayDirective' as an instance property.

22     readonly formDirective: FormGroupDirective;
                ~~~~~~~~~~~~~
node_modules/@angular-redux/form/connect-array/connect-array.directive.d.ts:23:14 - error TS2610: 'path' is defined as an accessor in class 'ControlContainer', but is overridden here in 'ConnectArrayDirective' as an instance property.

23     readonly path: string[];
EN

回答 1

Stack Overflow用户

发布于 2021-02-18 20:23:31

不再维护这些库,请检查this repo

作为升级项目时的一种解决方法,我在tsconfig.json inside compilerOptions中设置了"skipLibCheck":true,如下所示:

代码语言:javascript
复制
{
  ...,
  "compilerOptions": {
    ...,
    ...,
    "skipLibCheck": true,
    ...,
    ...
  },
  "angularCompilerOptions": {
    ...
  }
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63772910

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档