-
-
Notifications
You must be signed in to change notification settings - Fork 447
Type error of v-for index #591
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
Please try config |
Doesn't seem to be the case for us as we already had that: {
"extends": "../../tsconfig.json",
"compilerOptions": {
"lib": ["esnext", "dom"],
"types": ["vite-svg-loader", "vite/client", "jest"],
"typeRoots": ["src/@types", "node_modules/@types"],
"composite": false,
"outDir": "dist",
"rootDir": ".",
"baseUrl": "src",
"paths": {
"~/*": ["./*"],
"$/*": ["../test/*"]
}
},
"include": ["src", "test"],
"references": [{ "path": "../core/tsconfig.build.json" }]
}
|
Your tsconfig working for me, please provide a minimal reproduce, thanks. |
@johnsoncodehk The error still persists for me. I have a reproduction repo for vue-2 https://github.com/mariusheine/vue-tsc-type-error-v-for-index as well as for vue-3 https://github.com/mariusheine/vue-tsc-type-error-v-for-index/tree/vue-3 I used the tsconfig you linked above |
@mariusheine Thanks for the report. This is a bug of low TS version, please update your workspace TS version if you can, or use |
@johnsoncodehk Sorry for the late reply. A ts version upgrade fixed it. Thx a lot! |
I get an strange error when running
vue-tsc
with myv-for
type. Maybe this is related to #544The text was updated successfully, but these errors were encountered: