-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
extends... in jsconfig causes warnings in editors #4428
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
Comments
From the reproducible it sounds like the warning is expected. The config which the jsconfig extends from turns on type checks für JavaScript(Svelte) files. If you don't want that, you can change it to {
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"checkJs": false
}
} As an alternative, if you want type checking, adjust the |
I might have explained it wrong, the warning is not expected since I do not expect to have type checks turned on if not using TypesScript. Maybe this is just a matter of setting |
Related #4427. Both seem to have stemmed from |
You both are right. The previous behavior was to only introduce a |
Cross-posting from #4495: I almost wonder if we need to have two separate prompts when setting up a project, where if you don't opt in to TypeScript-the-language you can still opt in to typechecking:
Personally I would choose No and Yes, but I don't know if I'm in a sufficiently small minority that that would be annoying for most non-TypeScript users. |
We can close this now, as |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
VSCode gives type warnings in vanilla js
Removing the following from
jsconfig.json
fixes this:This shouldn't happen if you are not using typescript.
Reproduction
Create a brand new SvelteKit project, skeleton, no typescript.
Add following to
index.svelte
VSCode will now mark
lang
with a warning/error sayingProperty 'lang' lang does not exist on type 'Session'
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: