-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
SASS syntax error: Identifier is expected svelte(css-syntax-error) #362
Comments
TODO: fix sass in component linting error sveltejs/language-tools#362
SASS is unfortunately not supported at the moment, because the css language service we use does not support it. But we should at least somehow turn off all diagnostics to not show you these false errors. |
Thank you. Yes that would be beneficial as eslint also picks up these errors |
I'm sorry to say. but we can't do much regarding eslint. eslint-plugin-svelte3 doesn't support preprocess. See here |
Thank you very much. I'm sad to see that I think that's an important part of a js library/framework |
I cannot reproduce this using your code snippet. Turns out our language-server already should already turn off diagnostics for |
Maybe you still have the old extension installed? This one would certainly throw errors. How to remove: #372 . |
I have Svelte for VSCode if you're asking for that. The official new one. Re-installed two days ago |
Did you install the old "Svelte" extension by James Birtles previously? If so, did you remove it? |
No I didn't :/ I only had the latest |
Do you think SASS will be supported in the future ? |
@7antra just a suggestion: try webstorm (with svelte plugin), it has sass support |
I don't think we will support SASS out of the box anytime soon. You can however tweak your setup to get proper syntax highlighting and get rid of the errors. See the docs for more info. |
Another wild guess why this might happen: Maybe you did add |
Closing due to inactivity and since we cannot reproduce this. |
Describe the bug
When I run eslint, or use VSCode, I get the error
Identifier is expected˙svelte(css-syntax-error)
in the beginning of all components that use sass (<style lang="sass"></style>
)To Reproduce
Create a svelte component in a project with
node-sass
andsass
and create a style tag withlang="sass"
. Write a basic style, for e.g.:Expected behavior
There should be no errors, since the style has the sass lang attr
Screenshots
![image](https://user-images.githubusercontent.com/30638105/88465750-944a5500-cec5-11ea-9621-cd4b1a34aed3.png)
System (please complete the following information):
The text was updated successfully, but these errors were encountered: