I just created an app with pnpx sv create sveltekit-test2
and checked vitest
and now when I run pnpm check
I get this error:
Loading svelte-check in workspace: /home/sas/devel/apps/dgiit/proyectos/tmp/sveltekit-testGetting Svelte diagnostics.../home/sas/devel/apps/dgiit/proyectos/tmp/sveltekit-test/vite.config.ts:5:12Error: No overload matches this call. The last overload gave the following error.
this is my vite.config.js
import { defineConfig } from "vitest/config";import { sveltekit } from '@sveltejs/kit/vite';export default defineConfig({ plugins: [sveltekit()], test: { include: ['src/**/*.{test,spec}.{js,ts}'] }});
and here's the same error on vscode
the defineConfig
from the vite
package works ok, btw