-
Notifications
You must be signed in to change notification settings - Fork 422
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
Vite fresh install: TypeScript error for vitest.config.ts #317
Comments
haoqunjiang
added a commit
to haoqunjiang/vitest
that referenced
this issue
Jul 24, 2023
Ported from vitejs/vite#13792 Fully fixes issues like vuejs/create-vue#317 and vuejs/create-vue#313 For an easy reproduction, please refer to https://github.com/sodatea/viteste-define-config-bug-repro I didn't include a test in this PR because: 1. The reproduction is a bit complicated, it only fails on the very latest Vite versions, but updating Vite would mess up the lockfile. 2. By not updating the dependencies, we can make sure that this fix is compatible with older versions of Vite, too.
It's bad, but not that important. The code still runs despite the type issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See issue on Discord
Hi!
I just made a fresh install (vue@3.3.4, vite@4.4.6)
npm init vue@latest
.Sadly I have a TS Error in vitest.config.ts:7
The Error says the following.
S2345: Argument of type 'UserConfigExport' is not assignable to parameter of type 'UserConfig | Promise'. Type 'UserConfigFn' is not assignable to type 'UserConfig | Promise'.
Question:
How to Reproduce
npm create vite@latest
The text was updated successfully, but these errors were encountered: