Closed thdoan closed 1 year ago
I can't reproduce this locally. We'd need a repro to investigate further, e.g. a github repo if you can't reproduce on stackblitz.
see https://github.com/sveltejs/language-tools/issues/2149
vite-plugin-svelte handles onwarn for it's own logging, but it cannot control what the vscode extension does.
I originally submitted issue in Svelte repo, but they said it might be related to this module, that's why I submitted it here. I managed to set up an environment for you to reproduce the issue. Steps:
package.json
: "svelte": "^4.2.0",
npm install
Or grab the code from this repo and do the same steps above: https://github.com/thdoan/svelte-vite-starter
Your reproduction describes that the warning is shown by vscode. vite-plugin-svelte is not responsible for this.
please stop crossposting
https://github.com/sveltejs/language-tools/issues/2149#issuecomment-1705845910
Describe the bug
I just upgraded from Svelte 3.59.2 to 4.2.0 and noticed a regression issue (since it was the only change)...
This was working as expected in v3.59.2 (warnings suppressed):
After upgrading to v4.2.0, the code above no longer works and warnings are still shown in VS Code.
Reproduction URL
N/A (vite.new doesn't show warnings)
Reproduction
svelte.config.js
package.json
:"svelte": "^4.2.0",
npm install
<label tabindex="0" on:click={() => console.log('test')}>Test</label>
Logs
No response
System Info