PillowPillow / ng2-webstorage

Localstorage and sessionstorage manager - Angular service
MIT License
428 stars 92 forks source link

error TS-996005: NgxWebstorageModule.forRoot returns a ModuleWithProviders type without a generic type argument. #119

Closed fenta23 closed 4 years ago

fenta23 commented 4 years ago

Versions (please complete the following information):

Describe the bug After import of NgxWebstorageModule.forRoot() the error occurs: ERROR in node_modules/ngx-webstorage/lib/module.d.ts(10,58): error TS-996005: NgxWebstorageModule.forRoot returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrenc e is in library code you don't control, please contact the library authors.

main.ts:12 Error: Can't resolve all parameters for InMemoryStorageStrategy: (?). at getUndecoratedInjectableFactory (core.js:18377) at injectableDefOrInjectorDefFactory (core.js:18361) at providerToFactory (core.js:18462) at providerToRecord (core.js:18407) at R3Injector.processProvider (core.js:18227) at core.js:18192 at core.js:1120 at Array.forEach (<anonymous>) at deepForEach (core.js:1120) at R3Injector.processInjectorType (core.js:18188)

To Reproduce Steps to reproduce the behavior:

  1. Angular 9 rc1 Starter with ngx-webstorage: https://github.com/fenta23/angular9.0.0rc1-with-ngx-webstorage
  2. ng serve
  3. see the compiler and console output
  4. See error

Expected behavior Should work

Desktop (please complete the following information):

fenta23 commented 4 years ago

There is a pullrequest already in the pipe fixing this issue.... just seen...

TraianBlueAir commented 3 years ago

Hi,

Please help me.

Did anyone solved this problem?

I have the same problem:

Error: Can't resolve all parameters for InMemoryStorageStrategy: (?). at injectableDefOrInjectorDefFactory (vendor.js:58019) at providerToFactory (vendor.js:58105) at providerToRecord (vendor.js:58038) at R3Injector.processProvider (vendor.js:57928) at vendor.js:57910 at vendor.js:58136 at Array.forEach () at deepForEach (vendor.js:58132) at R3Injector.processInjectorType (vendor.js:57906) at vendor.js:57884

Thank you for your help