- Notifications
You must be signed in to change notification settings - Fork478
Closed
Description
See issueon 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
viteConfig, defineConfig({ test: { environment: 'jsdom', exclude: [...configDefaults.exclude, 'e2e/*'], root: fileURLToPath(new URL('./', import.meta.url)), transformMode: { web: [/\.[jt]sx$/] } } }))
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:
- Can I fix it, or is it only able inside the Vite Package itself? Is there an Update to fix that?
- Is it bad to have a TS error (like that) on a fresh install. Should I worry about TS Errors or are they not important?
How to Reproduce
- Open Terminal on mac, run
npm create vite@latest
- Follow the install instructions using: TS, TSX, VueRouter, Piania, Vitest, Cypress, ESlint, prettier
- run. cd && npm i && npm run format && npm run dev
- In Webstorm I get that error in the file after File-Indexing is finished in Webstorm
Metadata
Metadata
Assignees
Labels
No labels