I was trying to update a project from Angular 14 to 18.
Of course I did it gradually from 14 to 15.
Then from 15 to 16, then from 16 to 17 and currently from 17 to 18
When updating from 16 to 17 I got this error
Error: node_modules/@ngrx/effects/src/effect_creator.d.ts:42:101 – error TS2313: Type parameter ‘OT’ has a circular constraint.
42 export declare function createEffect<C extends EffectConfig, DT extends DispatchType, OT extends ObservableType<DT, OT>, R extends EffectResult>(source: () => R & ConditionallyDisallowActionCr
eator<DT, R>, config?: Partial): R & CreateEffectMetadata;
I searched and found that the typescript version needs to be installed 5.3.3 to fix this error.
I fixed this error for version 17 of Angular and everything worked fine
When switching to Angular 18, the error repeated (((
But there is one problem for Angular 18 you need to have a typescript version >=5.4.0 <5.5.0.
I would be glad if someone could help me, thanks in advance
I tried installing different versions of typescript but could not fix the error