PillowPillow/ng2-webstorage

Broken with Ivy

hliu-pharmhos opened this issue · 2 comments

Versions (please complete the following information):

  • NgxWebstorage: [e.g. 3.0.x]
  • Angular: [e.g. 8.3.22]

Describe the bug
When enable Ivy render engine, angular app won't run. the exception stack is as following:
Error: Can't resolve all parameters for InMemoryStorageStrategy: (?).
at getUndecoratedInjectableFactory (:4200/vendor.js:36222)
at injectableDefOrInjectorDefFactory (:4200/vendor.js:36206)
at providerToFactory (:4200/vendor.js:36307)
at providerToRecord (:4200/vendor.js:36252)
at R3Injector.processProvider (:4200/vendor.js:36112)
at :4200/vendor.js:36077
at :4200/vendor.js:21994
at Array.forEach ()
at deepForEach (:4200/vendor.js:21994)
at R3Injector.processInjectorType (:4200/vendor.js:36073)

It seems angular runtime cann't workout the Injectable parameter for the constructor of the InMemoryStorageStategy class.

Same error with
"ngx-webstorage": "4.0.1",
"@angular/core": "9.0.0-rc.8",

This does not appear to be a problem anymore, at least since ngx-webstorage 6.x and angular 10.