-
-
Notifications
You must be signed in to change notification settings - Fork 209
Cannot properly use global selector with :is and :where #1208
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
Related: sveltejs/svelte#4314 |
This is a Svelte compiler error, which I can't make appear with the code snippet and using the latest version. Which version of Svelte are you using your project? What happens if you update to the latest version? |
It works in the REPL: https://svelte.dev/repl/2b3dad5fe375474e9ca412b4c7485e85?version=3.44.0 I am using svelte version 3.44.0 I did notice that I forgot to bring over the closing </style> tag, I've updated the initial report with it now. |
I cannot reproduce this, so I'm thinking that the Svelte package of your project is somehow not found, so the extension falls back to using the one packaged, which is 3.38.3, which contains this error. Bumping that would fix the issue, but the bump is currently blocked by sveltejs/svelte#6728 |
Hmm, my project is still in its early stages, and I created it using degit. I’m using version 2 of the package-lock (npm 7+) though, maybe that has something to do with it? |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Svelte language server shows error for
:global(:is(.a, .b))
, even though it compiles properly.To Reproduce
(environment: VSCode with Svelte for VSCode extension)
:global(:is(.a, .b))
in a component's style.Expected behavior
There should not be an error. In fact, building this code is successful.
Screenshots

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