-
-
Notifications
You must be signed in to change notification settings - Fork 209
Svelte warning (unused export) displayed at wrong line since switching to typescript #333
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
Can you check if your tsconfig has |
It doesn't, this is my tsconfig.json:
|
After adding "sourceMap": true to my tsconfig, it seems that the correct line is underlined, even though I wonder why it doesn't underline the whole line. So is this the expected behaviour? If yes, maybe the sourceMap option could be added to the tsconfig in the blog post? |
The problem is that if the preprocessed script doesn't have a sourcemap the warning would be targeting the transpiled javascript. @orta what do you think, should it default in the |
We should! |
As discussed in sveltejs/language-tools#333
|
Describe the bug
I have just switched my svelte project from js to typescript. Since then, a warning about an unused export is displayed at the wrong line.
I don't actually know if this is caused by the language-tools or if I should open this somewhere else?
Expected behavior
Warning should be displayed for the correct line.
Screenshots

First lines of the component:
System (please complete the following information):
The text was updated successfully, but these errors were encountered: