Closed os-tohe closed 2 months ago
Does the tsconfig.json
exist?
Yes it looks like this:
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": {
"lib": ["ES2021", "DOM", "DOM.Iterable"],
"paths": {
"@/*": [
"./src/*"
]
},
"types": [
"node", "vitest/globals"
]
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}
And tsconfig.node.json looks like this:
{
"compilerOptions": {
"composite": true,
"module": "esnext",
"moduleResolution": "node"
},
"include": ["vite.config.ts"]
}
Try adding this and check again:
{
"vueCompilerOptions": {
"plugins": []
}
}
And it would be best to provide a minimal repro.
That does not seem to help, but I noticed a strange thing about this version. If I install the version like this: "vue-tsc": "2.0.29"
it does not throw any errors. But if I install it with the ^ prefix like this: "vue-tsc": "^2.0.29"
it throws the error. The version 2.1.2 throws the error with or without ^ prefix. I'll provide a minimal repro when I have more time available.
I encountered this error when enabling vue-tsc
with vite-plugin-checker
.
I traced the issue to possibly being caused by this: https://github.com/vuejs/language-tools/blob/v2.1.2/packages/language-core/lib/languagePlugin.ts#L51.
It appears to be an issue caused by incorrect parameter injection.
Would you please open an issue with them? It seems they're not compatible anymore.
I have the same issue: vue-tsc@2.1.2 vue@3.4.38 vite-plugin-checker@0.7.2 typescript@5.5.4 Actually pluginContext.vueCompilerOptions.plugins is not iterable because it's undefined.
I've opened a PR with them https://github.com/fi3ework/vite-plugin-checker/pull/395
Same issue here, still happens on 2.1.4 using vite plugin checker 0.7.2, works as long as you pin vue-tsc at 2.0.29 for now
This issue only happens when you are between 2.1.0 - 2.1.4
Same issue here
I have the same issue
Opened another PR to resolve this on checker level
same issue in vue-tsc@2.1.6
same issue in vue-tsc@2.1.6
it was merged this morning, if you update to vue-tsc@2.1.6 with vite-plugin-checker 0.8.0 it should work. Or if you dont use vite plugin checker, it should also work on latest vue version running on vue-tsc@2.1.6
if this doesnt work after updating i suggest opening a new issue
Does not work on "vue": "^3.5.3", "vue-tsc": "^2.1.6", "nuxt": "^3.13.1"
Please open a new issue if the problem still occurs on your end!
Hey folks. Since plugin checker released this as "major" (in terms of 0.x versioining) version, Nuxt has to update dependency on their side first - and they did that, fix will be available in next patch.
For now, you can pin resolution in any way you like, fix example:
"resolutions": {
"vite-plugin-checker": "^0.8.0"
},
Next patch of Nuxt is available: https://github.com/nuxt/nuxt/releases/tag/v3.13.2
Next patch of Nuxt is available: https://github.com/nuxt/nuxt/releases/tag/v3.13.2
Can confirm that the error is fixed for me Thanks
Vue - Official extension or vue-tsc version
v2.0.29
VSCode version
1.92.2
Vue version
3.4.38
TypeScript version
5.5.4
System Info
Steps to reproduce
Install version any version between v2.0.29-v2.1.2 and start the Vue 3 vite project.
What is expected?
Vue 3 project should start.
What is actually happening?
Throws this error and fails starting:
Link to minimal reproduction
No response
Any additional comments?
No response