-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
issues with "moduleResolution": "Node16"
inside tsconfig.json
#1965
Comments
I assume replacing all |
The type issue is easily solvable through The other issue is hard to solve. The problem is that we set |
will also work with other resoution algorithms sveltejs#1965
Describe the bug
When setting
moduleResolution
toNode16
insidetsconfig.json
I encounter two issues:the "zero-effort typesafety" functionality stops working
if I run
svelte-check:watch
and safe thetsconfig.json
file, the process crashes with following error messageReproduction
demo repository: https://github.com/ivanhofer/svelte-check-moduleresolution-node16
/routes/+page.svelte
contains an error. If you runsvelte-check
nothing shows up.data
is typed asany
.Once
moduleResolution
removed from thetsconfig.json
, the error shows up.check:watch
and hit save on the openedtsconfig.json
file. The process should crash.Once
moduleResolution
removed from thetsconfig.json
, saving that file does not crash the process.Expected behaviour
I would expect the Svelte
language-tools
also to function withmoduleResolution
set toNode16
System Info
Which package is the issue about?
Svelte for VS Code extension, svelte-language-server, svelte-check
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: