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
[Vue3/Vite/Quasar] Type errors when transpiling with vue-tsc #1417
Comments
I'm struggling to create a reproduction for this. When I upgraded vue-tsc to v0.32.x I got an error that When I create a repo with only that part, What makes it harder is that the {
"name": "vue-tsc",
"version": "0.29.8", I get $ npx vue-tsc --version
Version 4.7.3 For the repro project with also {
"name": "vue-tsc",
"version": "0.29.8", I get $ npx vue-tsc --version
Version 4.6.3 |
Try update the vue-tsc version to latest, because 0.29.8 is outdate, if it can't fix the problem please provide a repro case so I can check. |
I think I'm getting to the root of this. It seems like it's related to the Typescript version. I have a multi workspace project, and the installed version of Typescript was 4.3.5. I've uninstalled Typescript and updated all packages that depend on Typescript to the latest version. Then reinstalled I'm on Typescript 4.7.3: $ npm ls typescript
clutter-dev@0.4.0 /Users/jost/Desktop/holochain/clutter
└─┬ clutter-ui-vue@0.0.1 -> ./ui
└─┬ vue-tsc@0.37.8
└── typescript@4.7.3 Now there are no type errors, but other errors: $ npx vue-tsc --noEmit
error TS6504: File '/Users/jost/Desktop/holochain/clutter/ui/src/components/MewListItemSkeleton.vue.__VLS_template.jsx' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation
error TS6504: File '/Users/jost/Desktop/holochain/clutter/ui/src/components/MewListItemSkeleton.vue.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation
error TS6504: File '/Users/jost/Desktop/holochain/clutter/ui/src/components/MewListSkeleton.vue.__VLS_template.jsx' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation
error TS6504: File '/Users/jost/Desktop/holochain/clutter/ui/src/components/MewListSkeleton.vue.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation
error TS6504: File '/Users/jost/Desktop/holochain/clutter/ui/src/pages/HomePage.vue.__VLS_template.jsx' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation
error TS6504: File '/Users/jost/Desktop/holochain/clutter/ui/src/pages/HomePage.vue.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation
error TS6504: File '/Users/jost/Desktop/holochain/clutter/ui/src/pages/MyProfile.vue.__VLS_template.jsx' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation
error TS6504: File '/Users/jost/Desktop/holochain/clutter/ui/src/pages/MyProfile.vue.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation Do they tell you something, @johnsoncodehk? |
This is a regression of v0.37.8, please track #1452. |
related to #1452 added |
Actual
When trying to build my Vue/Vite/Quasar project, I get type errors from
vue-tsc
in a Vite module, my own component and Quasar modules.VScode's Typescript check as well as running the Vite dev server haven't produced any such errors.
Expected
Transpiling completes without errors.
Output
System info
The text was updated successfully, but these errors were encountered: