-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Multiple VSCode extension fallback config issues #1413
Comments
We didn't try to download a config. The log is not saying we were downloading from the GitHub repo. It's just linking the repository so it's more clear what exactly we using. The fallback config is bundled. In a lot of cases, a custom You can read the docs to see if your problem is a common issue. Otherwise, we need a reproducible to know what exactly is the problem you're encountering. |
I have been trying to reproduce on my home machine and cannot. I can explain the setup though just in case you have any insight. I am using typescript and when I type a .svelte import, the editor provides a "Cannot find module ABC/App.svelte or its corresponding type declarations" error I then tried adding a global.d.ts file with the contents of / / / < reference types="svelte" / > This made that error go away but still not getting good types. For example, hovering over an import (while in a .ts file)
When I view the App.svelte component and hover over for example an on:click property then it will show me the good definitions from the extension. Any ideas? |
This is because typescript doesn't deal with the svelte files. We have a tsserver plugin that can address this issue. It's not on by default. You can enable it with the I am going to close this as it seems like we have found the problem and corresponding solution. |
So the problem now is that the typescript plugin doesn't seem to work in your work machine? What is the version of typescript and vscode you're using? Also, can you check the ts server log following the instruction here and see if there are any logs with a |
I am using typescript 4.6.2. I was using vscode 1.64.0 and taking note of that I just updated to 1.65.2 and it's now working better. Thank you for following up! |
I am just getting started with svelte. I am using VSCode and the official extension.
It works great at home but at work I am getting module resolution issues and it's taken hours to get to the bottom of it. I started looking at the vscode logs and noticed...No svelte.config.js found. Using https://github.com/sveltejs/svelte-preprocess as fallback
This brings up some questions
The text was updated successfully, but these errors were encountered: