-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
TypeScript Errors Caused by vitest Configuration in Vue App Build #353
Comments
I’m interested in the resolution of this config issue to add it to docs but it doesn’t seem to be about the code, just a config issue |
I can confirm this issue with Quasar (based on vue3), but I don't use vitest. |
I was able to make the /// <reference types="vite/client" />
/// <reference types="unplugin-vue-router/client" /> |
I'm experiencing the same issue in Vue.js and Vite projects. Has anyone found a solution? |
Does anybody have a solution for this? I am still having problems and the solutions listed do not work. |
Thanks @94726 ! I adapted the docs |
Issue Description:
Encountering TypeScript errors related to the
vue-router/auto
when building a fresh Vue 3 application created withnpm create vue@latest
. The errors occur specifically with thecreateRouter
andcreateWebHistory
functions.Steps to Reproduce:
npm create vue@latest
with the below configuration.unplugin-vue-router
.Expected Behavior:
The Vue application should build successfully without any TypeScript errors related to the
vue-router/auto
.Actual Behavior:
Encountering TypeScript errors
Additional Context:
The errors are resolved by removing the path configuration for Vitest from
tsconfig.json
, which was added automatically during the creation of the Vue app.Reproduction Repository:
A reproduction of the issue has been created at: MooseSaeed/tsc-error
The text was updated successfully, but these errors were encountered: