-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Closed
Copy link
Labels
p1-importantSvelteKit cannot be used by a large number of people, basic functionality is missing, etc.SvelteKit cannot be used by a large number of people, basic functionality is missing, etc.types / typescript
Milestone
Description
Describe the bug
I'm getting typescript warnings that a .svelte file that I'm importing in a test file doesn't exist. But vitest runs fine. It seems to work if I add an includes in the project tsconfig.json to
"include": [
"./.svelte-kit/ambient.d.ts",
"src/**/*.js",
"src/**/*.ts",
"src/**/*.svelte",
"src/**/*.js",
"src/**/*.ts",
"src/**/*.svelte",
"test/**/*.ts",
"test/**/*.js",
"test/**/*.svelte"
],
and relaunch VS Code. But I'm wondering why test directory wasn't included in .svelte-kit/tsconfig.json in the first place.
Reproduction
https://github.com/manuganji/sjsf/tree/17b0742b3d25347a6c4be2186a7bd8f568ea32ae
Logs
No response
System Info
System:
OS: macOS 12.1
CPU: (8) x64 Apple M1
Memory: 30.89 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
Yarn: 1.22.17 - /opt/homebrew/bin/yarn
npm: 8.10.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
Browsers:
Chrome: 104.0.5112.79
Firefox: 100.0.2
Safari: 15.2
npmPackages:
@sveltejs/adapter-auto: next => 1.0.0-next.63
@sveltejs/kit: next => 1.0.0-next.403
svelte: ^3.44.0 => 3.49.0
vite: ^3.0.0 => 3.0.3Severity
annoyance
Additional Information
No response
Metadata
Metadata
Assignees
Labels
p1-importantSvelteKit cannot be used by a large number of people, basic functionality is missing, etc.SvelteKit cannot be used by a large number of people, basic functionality is missing, etc.types / typescript
