Replies: 1 comment
|
This is a TypeScript Fix: add {
"compilerOptions": {
"lib": ["ES2021", "ES2021.Intl", "DOM", "DOM.Iterable"]
}
}Or use a superset that includes it: {
"compilerOptions": {
"lib": ["ES2022", "DOM", "DOM.Iterable"]
}
}Why it's confusing: SvelteKit's default Verify after changing: restart the Svelte Language Server (Ctrl+Shift+P → "Svelte: Restart Language Server") and the |
Uh oh!
There was an error while loading. Please reload this page.
Perhaps I'm looking in the wrong place, but in VSCode (using the Svelte extension - v108.1.0) I'm getting a warning when I use
Intl.supportedValuesOfstating thatsupportedValuesOfit is not part ofIntl.This feature is fully supported by all major browsers.
I made sure to set VSCode's Typescript support to ESNext, but that doesn't seem to make any difference. A similar issue was reported to VSCode's team, but they said it was the responsibility of the extension owner.
I so I guess my question is, has anyone run into this issue and is the right place to fix this at the Svelte VSCode extension? Any tips on how to make the warning go away?
All reactions