-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LRU Cache is not a constructor issue in Microsoft Office addin #336
Comments
What does What package manager are you using? Something in your dep tree is getting a version that it doesn't know how to use. This is likely a package manager issue. |
seems like this is a pretty ongoing/reoccuring issue with this library, quite a few historical issues with the same thing. I realise it's package manager related, but I've never seen this with any other package. Is there any chance maybe there is something to do with this package that maybe could be a bit more compatible? |
It's 2025 and I'm dealing with the same issue and the nuance behind this is absolutely wild. I'm still missing information, but this is what I know so far: The maintainer of this package changed how the class is exported. Instead of a default export, it exports the class by name. This happened in a commit before 9.0.0 was released. The maintainer didn't do anything wrong here; they bumped the major version up which is exactly what we should expect. So, why is this error happening everywhere? This module has a lot of dependents. If you're using In our issue on Puter - and I don't know why this happens only in the GitHub action - As a bit of an aside, it's terrifying that this fallback behavior occurs. Imagine this were a security-sensitive package and it didn't cause a runtime error, but fell back to an older version of the module silently. |
Hi I'm developing an Excel addin via the yeoman generator, which includes LRU Cache package as a dependency (not sure of which of the dependencies in pakcage.json). The code now throws an error (Typeerror: LRU Cache is not a constructor) on running npm start to run the app.
The code stopped working some time between evening GMT of Thursday and 9am GMT Friday - I can see that there was a new version of LRU Cache around that time so assume the issue is related to that.
Can you advise at all?
Many thanks
Peter
The text was updated successfully, but these errors were encountered: