PillowPillow / ng2-webstorage

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

TypeError: can't access property "get", this.strategy is undefined. Still no fix this?? #187

Closed logicappsource closed 8 months ago

logicappsource commented 9 months ago

Versions (please complete the following information): "ngx-webstorage": "11.1.1",

Describe the bug When retreiving any object using get or set, the following error occur: TypeError: can't access property "get", this.strategy is undefined.

To Reproduce Steps to reproduce the behavior:

  1. Inject the storage dependcy
  2. call any method on the service

Expected behavior Receive an item for localStorage without throwing an error

PillowPillow commented 9 months ago

Hello, I m using this library for my company projects and don't encounter this issue.

I m working on this on my free time, if you wan't that i look on your problem, at least give me a repo reproducing your issue.

BTW, i see that you're on a legacy version, I don't plan to maintain the prior version of angular. I m not sure, but it's possible that this issue was fixed but not in your version.

logicappsource commented 8 months ago

issue closed the error was not related to the framework but issue by myself. Thank you

Xstoudi commented 6 months ago

@logicappsource Can you tell us how did you fix this error? :')