Search code examples
angulartypescriptgoogle-chrome-devtoolsngrx

circular dependency Angular 6


I've uploaded the whole project in enter link description here

after many attempts of I got this error each time I run the same code and get these errors:

`ERROR in node_modules/@ngrx/store-devtools/src/actions.d.ts(18,21): error TS1039: Initializers are not allowed in ambient contexts.

node_modules/@ngrx/store-devtools/src/actions.d.ts(22,21): error TS1039: Initializers are not allowed in ambient contexts.

node_modules/@ngrx/store-devtools/src/actions.d.ts(26,21): error TS1039: Initializers are not allowed in ambient contexts.

node_modules/@ngrx/store-devtools/src/actions.d.ts(31,21): error TS1039: Initializers are not allowed in ambient contexts.

node_modules/@ngrx/store-devtools/src/actions.d.ts(36,21): error TS1039: Initializers are not allowed in ambient contexts.

node_modules/@ngrx/store-devtools/src/actions.d.ts(40,21): error TS1039: Initializers are not allowed in ambient contexts.

node_modules/@ngrx/store-devtools/src/actions.d.ts(44,21): error TS1039: Initializers are not allowed in ambient contexts.

node_modules/@ngrx/store-devtools/src/actions.d.ts(51,21): error TS1039: Initializers are not allowed node_modules/@ngrx/store-devtools/src/actions.d.ts(56,21): error TS1039: Initializers are not allowed

node_modules/@ngrx/store-devtools/src/actions.d.ts(61,21): error TS1039: Initializers are not allowed

node_modules/@ngrx/store-devtools/src/actions.d.ts(66,21): error TS1039: Initializers are not allowed

node_modules/@ngrx/store-devtools/src/actions.d.ts(71,21): error TS1039: Initializers are not allowed

node_modules/@ngrx/store-devtools/src/actions.d.ts(76,21): error TS1039: Initializers are not allowed

i 「wdm」: Failed to compile. `

enter image description here

with some chance without changing anything in code the project compiles successfully but with another error which is Uncaught Error: Can't resolve all parameters for CoinEffects: (?, [object Object]).

after many searches I discovered that it's about circular dependency it tried to fixed but in vain is it about dependencies or something else?


Solution

  • Thank u i discovered that it s all about packages nothing wrong in code .