-
Notifications
You must be signed in to change notification settings - Fork 498
fix: vitest merge config in form of callback #701
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
Conversation
But our vite config isn't defined as an function. Would you please open an issue with a runnable reproduction?
But our vite config isn't defined as an function. Would you please open an issue with a runnable reproduction?
Sorry, my mistake 😅 The issue lies with my vite.config.ts
file, where I defined the Vite config in a functional way. I thought that defining the Vite config as mentioned in the PR would make it more universal. However, in this case, if it is not defined as a function, a new TypeScript error would be raised, even though Vitest runs successfully. Feel free to close the PR anyway :)
I got an vitest error using
create-vue
template:Fixed it according to vitest's official documentation
image