Replies: 4 comments
-
You can also try using |
Beta Was this translation helpful? Give feedback.
-
/// // https://vitejs.dev/config/ try writing these codes in vitest config file if the problem is not solved https://vitest.dev/config/ |
Beta Was this translation helpful? Give feedback.
-
Check and ensure that node_modules/vitest/node_modules/vite does not exist. |
Beta Was this translation helpful? Give feedback.
-
Turned out for me it was indeed to do with duplicate packages causing type mismatches as mentioned by ka2n. This is because I had: Vitest is using vite at v5, so clearly it's not compatible with v6. You just need to install a vite version that's compatible with the latest version of vitest (at time of writing): bun uninstall vite && bun add vite@^5 Now your vitest node_modules folder still has the old version of vite installed, so if you simply re-install vitest it will work: bun uninstall vitest && bun install vitest -D |
Beta Was this translation helpful? Give feedback.
-
Usage of 'reference' is not valid for my project, typescript prompts me that 'test' is not in type 'UserConfigExport'
Package version:
vite: 5.0.12
vitest: 1.3.1
typescript: 5.4.2
Beta Was this translation helpful? Give feedback.
All reactions