lmaccherone / node-localstorage

A drop-in substitute for the browser native localStorage API that runs on node.js.
MIT License
450 stars 36 forks source link

Fatal bug: ReferenceError: _sync is not defined #87

Closed create3000 closed 1 year ago

create3000 commented 1 year ago

Version "node-localstorage": "^3.0.4", throws the following error:

App threw an error during load
ReferenceError: _sync is not defined
    at LocalStorage._init (/Users/holger/Desktop/X_ITE/sunrize/node_modules/node-localstorage/LocalStorage.js:166:11)
    at new LocalStorage (/Users/holger/Desktop/X_ITE/sunrize/node_modules/node-localstorage/LocalStorage.js:114:14)
    at Object.<anonymous> (/Users/holger/Desktop/X_ITE/sunrize/src/sunrize/Application/Application.js:16:22)

Shouldn't it be this._sync()?

remisture commented 1 year ago

Same problem here. Anyone working on a fix?

lmaccherone commented 1 year ago

I will fix it tonight. Sorry


From: Remi Sture @.> Sent: Saturday, August 5, 2023 3:58:54 PM To: lmaccherone/node-localstorage @.> Cc: Subscribed @.***> Subject: Re: [lmaccherone/node-localstorage] Fatal bug: ReferenceError: _sync is not defined (Issue #87)

Same problem here. Anyone working on a fix?

— Reply to this email directly, view it on GitHubhttps://github.com/lmaccherone/node-localstorage/issues/87#issuecomment-1666592407, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAHCQ6AMMPTDLKVLV3JKZ6DXT2QX5ANCNFSM6AAAAAA3D5HPFE. You are receiving this because you are subscribed to this thread.Message ID: @.***>

lmaccherone commented 1 year ago

Should be fixed in 3.0.5.