-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
vue-tsc doesn't work with typescript 5.7.2 #5018
Comments
I found the issue, Typescript was updated 1 hour ago to version 5.7.2. For me, version 5.6.2 is working. |
I am experiencing the same problem when using vue-tsc version 2.1.10 with TypeScript 5.7.2. The error occurs when running the build script using pnpm /node_modules/.pnpm/vue-tsc@2.1.10_typescript@5.7.2/node_modules/vue-tsc/index.js:34
throw err;
^
Search string not found: "/supportedTSExtensions = .*(?=;)/"
Node.js v22.11.0 To resolve this issue temporarily, I had to downgrade:
Here is the updated portion of my package.json after the downgrade: {
"scripts": {
"build": "vue-tsc -b && vite build"
},
"devDependencies": {
"vue-tsc": "2.0.29",
"typescript": "5.6.2",
"vite": "^5.4.10",
"@vitejs/plugin-vue": "^5.1.4"
}
} This downgrade fixed the issue. It appears to be related to an incompatibility between vue-tsc@2.1.10 and TypeScript 5.7.x. |
The incompatibility appears to be in the Volar repo, specifically where @volar/typescript patches the tsc code, because the tsc code changed with the typescript 5.7 release. I was a little late to the Vue ecosystem and I haven't followed the Volar discussion, so I'm not 100% sure, but I believe Volar is a standalone project now. I'm wondering if this issue may be more appropriately handled over there, since Volar supports other TypeScript-based languages that are impacted by this issue. I searched the issues there, and didn't find anything yet, but it may just be that fresh, since TypeScript 5.7.2 is only about 5 hours old. In the mean time, pinning TypeScript at 5.6.3 and allowing vue-tsc to go to 2.1.10 works for me. |
* Upgrade to Marked 15 * Upgrade to ESLint 9 and typescript-eslint 8 * Stay on TypeScript 5.6 because of an issue with vue-tsc with TS 5.7: vuejs/language-tools#5018 (and also because typescript-eslint doesn't officially support 5.7)
same here |
At language-tools/packages/tsc/index.ts Line 6 in cf70eda
typescript/lib/tsc.js is referenced.
This file is now To work in all typescript versions, it would need to apply the transformations on both It might be worth updating https://github.com/volarjs/volar.js/blob/master/packages/typescript/lib/quickstart/runTsc.ts#L11 to:
|
This has a huge impact. When will the version be released to solve this problem? |
vue-tsc <= 2.1.10 has some issues with TypeScript 5.7. See: vuejs/language-tools#5018
Are there any plans to do a patch release for this anytime soon? I don't think vue-tsc@3fb59af is a viable option... |
Creates MediaObject component using Layout component Lots of examples Some new supporting Sass mixins Some new supporting JS utilities Updated and pinned vue-tsc and typescript because of vuejs/language-tools#5018
Sorry for the delay, I am currently no longer able to maintain this project full time. Since the next version depends on some Volar.js updates, I'll be working on the backlog here once the next Volar.js version is completed and released. This project currently relies heavily on the developers I'm sponsoring to work on in their spare time. If you would like to help keep this project sustainable, please consider joining the insiders program, where we aim to support at least one part-time developer. |
apply vue-tsc patch to avoid vuejs/language-tools#5018
* commit '259063b2721d3cc1e820fa1f01864f49539d04a0': (30 commits) feat: Add documentation cell feat: remove screen adaptation prompt feat: Improve the prompt for screen adaptation in night mode feat: add screen adaptation prompt chore: release v3.4.0 feat: Support JSON5 (easy-temps#136) chore: Update all deps chore: release v3.3.1 chore: Apply lint chore: Update vite deps optimization config chore: Update to vite 6 chore: pin typescript - vuejs/language-tools#5018 chore: Update all deps perf: control the nested display of related files for vscode (easy-temps#135) chore: release v3.3.0 refactor: combine vant i18n setup (easy-temps#133) feat: Lazy loading the localization files chore: release v3.2.1 chore: Update editorconfig fix: Add `route.name` null check (easy-temps#132) ...
This avoids a problem with vue-tsc and Typescript 5.7. See: vuejs/language-tools#5018
Can we reopen this issue until the patch has been released? |
I second @amir20 that we reopen this issue. I experinced this issue with nuxt and was able to get around it by disabling the typescript.typecheck in the nuxt config. |
Vue - Official extension or vue-tsc version
2.1.10
VSCode version
none
Vue version
3.5.13
TypeScript version
5.7.2
System Info
package.json dependencies
Steps to reproduce
update typescript to 5.7.2
What is expected?
no error
What is actually happening?
throw error:
Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: