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
The text was updated successfully, but these errors were encountered:
nestle49
changed the title
vue 3.4.18 with vite 5.1.1 and rollup-typescript-plugin2 (ui-kit) build error
vue 3.4.18 (since 3.4.16) with vite 5.1.1 and rollup-typescript-plugin2 (ui-kit) build error
Feb 9, 2024
Traced this down to the dependency update commit #10175
Root cause is the upgrade of lru-cache from 10.1.0 to 10.2.0 included this change which causes the result of calling Object.prototype.toString on the parseCache export of compiler-sfc has changed.
rollup-plugin-typescript2 uses object-hash to hash options, which somehow encounters the new LRUCache class and throws because the string type has changed to something it does not support.
It's a bit unfortunate that a seemingly harmless bump can cause issues like this. I think it's better to pin lru-cache considering we are only using the Map compatible interface and don't expect the implementation to change.
Vue version
3.4.18
Link to minimal reproduction
3.4.18 (since 3.4.16)
Steps to reproduce
If I downgrade vue version to 3.4.15, it's okay, but not after upgrade to 3.4.16 or later (3.4.18)
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: