jnwltr / swagger-angular-generator

Generator of API layer in TypeScript for Angular 2+ apps
MIT License
91 stars 46 forks source link

NullInjectorError (Angular 14) #159

Closed nicolasalcina closed 1 year ago

nicolasalcina commented 1 year ago

Hello, first of all, thanks for this lib !

I forced installed on my project on angular 14. Everythings works fine for using Services or form.

When I want to use store, I added my module in my app.module.ts but there is NullInjectorError .

Do I something wrong or Angular 14 is not possible ?

nicolasalcina commented 1 year ago

I found my answer : I have added in my module on section import : ... StoreModule.forRoot( { search: ExampleReducer }, { initialState: {}, runtimeChecks: { strictStateImmutability: false, strictActionImmutability: false } } ), StoreRouterConnectingModule.forRoot(), StoreDevtoolsModule.instrument({ name: 'my-project-name', maxAge: 25, logOnly: environment.debug }), EffectsModule.forRoot([]) ...