When running Shacdn + Svelte, Vite, I got this error :
▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
To solve this, edit package.json
and add prepare": "svelte-kit sync",
. For example
"scripts": {
"dev": "vite dev",
"build": "vite build",
"build:registry": "tsx scripts/build-registry.ts",
"br": "pnpm build:registry",
"preview": "vite preview",
"test": "playwright test",
"prepare": "svelte-kit sync",
"sync": "svelte-kit sync",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test:unit": "vitest"
},