Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

SvelteKit: "No overload matches this call" error invite.config.js when working with vitest

$
0
0

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

enter image description here

the defineConfig from the vite package works ok, btw

enter image description here


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>