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
False "Missing Property" Highlighting on some URLSearchParams methods #2306
Comments
This is most likely because your tsconfig lib doesn't include "DOM.Iterable". Can you check if you have the |
I'm not sure, my tsconfig.json says it
which includes the required libs out of the box. Here's my ./.svelte-kit/tsconfig.json:
I thought that should be doing it, but in my case the compiler messages persist. So obviously this isn't the right place to tell to use the lib? Where should it go then? |
Can you provide your tsconfig.json? And can you also try running |
Thx, here is my tsc config:
|
Hmm. The lib config seems to be right. Does svelte-check also have the same error? If not, can you check if restarting the editor helps? Otherwise, we'll need a reproduction to check. |
Yes, svelte-check gives me an error on this subject too:
So I think I'll make a fresh install to trace that down. I'll be back here as soon as I can make some findings. Appreciate your time! |
Maybe it's sveltejs/kit#11721? |
Describe the bug
Using
URLSearchParams
in a .svelte file brings up a diagnostic message: "missing property" and therefore courses the highlighting of the following methods:Whereas all the other methods (append, delete, get, getAll, has, set, sort, toString, forEach) seem to be supported by the repo just fine.
Reproduction
Expected behaviour
Since the above mentioned Class methods are well supported in modern browsers, they should not cause a diagnostic message in .svelte files saying "missing property".
System Info
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
The text was updated successfully, but these errors were encountered: