Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'formDirective' is defined as an accessor in class 'ControlContainer', but is overridden here in 'ConnectArray' as an instance property. #123

Open
AmruthaFR opened this issue Nov 3, 2020 · 1 comment

Comments

@AmruthaFR
Copy link

Current Behavior:
Updated my project from Angular 8 to Angular 10.

package.json contains :

"@angular-redux/form": "6.7.0",
"@angular-redux/store": "7.1.1",
"@angular/cdk": "10.2.5",
"@angular/common": "10.1.6",
"@angular/core": "10.1.6",
"@angular/flex-layout": "10.0.0-beta.32",
"@angular/forms": "10.1.6",
"redux": "3.7.2",
"redux-logger": "3.0.6",
"redux-observable": "0.17.0",
"redux-observable-es6-compat": "1.2.1",
"rxjs": "6.6.3",
"rxjs-compat": "6.5.3"
After migrating to Angular 10 , i am getting below error,

Error

ERROR in node_modules/@angular-redux/form/dist/source/connect-array/connect-array.d.ts:29:14 - error TS2610: 'formDirective' is defined as an accessor in class 'ControlContainer', but is overridden here in 'ConnectArray' as an instance property.

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

30 readonly path: Array;
Tried to update @angular-redux/form and @angular-redux/store to latest version, still getting the same error


**### Expected Behavior:**
It should work as similar to when added code in Angular 8

### Steps To Reproduce:

### Environment:

**node : v12.16.1
npm: 6.14.8**
ng:
Angular CLI: 10.1.7
Node: 12.16.1
**OS: win32 x64**

Angular: 10.1.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package Version
@angular-devkit/architect 0.1001.7
@angular-devkit/build-angular 0.1001.7
@angular-devkit/core 10.1.7
@angular-devkit/schematics 10.1.7
@angular/cdk 10.2.5
@angular/cli 10.1.7
@angular/flex-layout 10.0.0-beta.32
@angular/http 8.0.0-beta.10
@angular/material 10.2.5
@schematics/angular 10.1.7
@schematics/update 0.1001.7
rxjs 6.6.3
typescript 4.0.3
@AmruthaFR
Copy link
Author

from @angular-redux/ form i import the below for the project :
import { composeReducers, defaultFormReducer } from '@angular-redux/form';
export const rootReducer =
composeReducers(
defaultFormReducer(),

import { provideReduxForms } from '@angular-redux/form';
provideReduxForms(store);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant