-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
The project packaging will report this TypeScript error. #4006
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
Comments
I downgraded to version 10.9.0 and there would be no such error. |
Same here, got the same error while deploying to production yesterday {
"dependencies": {
"@vueuse/core": "~10.9.0",
}
} |
After some research, I discovered that the issue occurs when you run VueUse 10.10.0 with TypeScript versions below 5. This commit broke support for TypeScript versions below 5 because It wasn't a problem for me to update the TypeScript version. However, I'm not sure about @xstxhjh, @oliver139, and others. If it's an issue for them, a maintainer could consider reverting this commit. |
Ok, I see. I am having TS ~4.5.5 here and would see if I am able to upgrade the TS version. Thanks anyway! |
Would be nice if this happens, because our projects depend on https://quasar.dev/ which does not support Typescript >= 5 right now. |
I think it should at least be marked as a potential breaking change, not supporting TS<5 anymore :D |
Agree. Where minor version change should be backward compatible I think? |
Describe the bug
node_modules/@vueuse/shared/index.d.ts:398:119 - error TS1128: Declaration or statement expected.
398 declare function makeDestructurable<T extends Record<string, unknown>, const A extends readonly any[]>(obj: T, arr: A): T & A;
~
Found 10 errors in the same file, starting at: node_modules/@vueuse/shared/index.d.ts:398
Reproduction
new version
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: