Next.js Discord

Discord Forum

Error while using vitest

Answered
aabeborn posted this in #help-forum
Open in Discord
Avatar
During build using NextJs 14.1.4 i have this error in vitest.config.ts:
Type error: Excessive stack depth comparing types '{ plugins: PluginOption[][]; resolve: { alias: { '@/': string; }; }; test: { env: { PATH_PREFIX: string; NEXT_PUBLIC_PATH_PREFIX: string; }; globalSetup: string; globals: true; environment: "happy-dom"; ... 5 more ...; coverage: { ...; }; }; }' and 'UserConfig'.

Why is trying to verify types here?
Answered by aabeborn
there was a vite mismatched version in the pnpm.lock
View full answer

1 Reply

Avatar
there was a vite mismatched version in the pnpm.lock
Answer