You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get this error when attempting to use the memorystore.
Class constructor LRUCache cannot be invoked without 'new' {
"stack": "TypeError: Class constructor LRUCache cannot be invoked without 'new'\n at new MemoryStore (/node_modules/memorystore/lib/memorystore.js:78:1)
I did add the new on line 78 and re-built and it does fix the error
I did use yarn install to fetch it and it looks like it went with 6.0.0. I did notice on another thread for lru-cache that they had mentioned an update that now requires the new keyword. I noticed the version reference in this package.json is ^4.0.3 so maybe its just an update the version and adding the new on line 78
node version: v14.15.0 via nvm
version: 1.6.4
I get this error when attempting to use the memorystore.
I did add the
new
on line78
and re-built and it does fix the errormy code sample
change to line: 78
this.store = new LRU(this.options)
I could create a PR but the fix is so tiny, it might be faster on your end?
Note:
The text was updated successfully, but these errors were encountered: