-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code only shows types if TypeScript is installed #4267
Comments
Going back to Svelte-Kit version 1.0.0-next.288 appears to work, while 1.0.0-next.289 appears to manifest the bug. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I hid your last comment to avoid discussing multiple things here. I have no problem running I confirmed that VS Code is not finding |
It works if you install TypeScript. Rich suggested three options: we could a) skip the jsconfig if you choose no typescript, or b) always install typescript regardless of the user's choice. or c) keep things as they are, and tell people that if they want typechecking in their JS project they will need to install typescript |
I think the root problem is a bug in create-svelte. The only allowed
|
Yes, that was it. Fixed in #4295 A big thank you for finding that! |
Describe the bug
Cannot find module '$app/navigation' or its corresponding type declarations. It seems
goto
cannot be used or something is off with$app/navigation
.Reproduction
https://github.com/robots4life/goto
npm list @sveltejs/kit
=>goto@0.0.1 /shared/httpd/goto └── @sveltejs/kit@1.0.0-next.294
src/routes/index.svelte
svelte.config.js
System Info
Linux
Windows
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: