Skip to content
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

[css] at-rule unknown error #50242

Closed
raptoria opened this issue May 21, 2018 · 8 comments
Closed

[css] at-rule unknown error #50242

raptoria opened this issue May 21, 2018 · 8 comments
Assignees
Labels
css-less-scss Issues and items concerning CSS,Less,SCSS styling

Comments

@raptoria
Copy link

I'm trying to use css-modules like so:
@value green: #aaf200;

and I keep getting
[css] at-rule unknown.

I've tried installing and uninstalling every css-modules extension I could find, but the error won't go away. Any ideas?

VSCode Version: 1.23.1
Node: 7.9.0
OS Version: Windows 7 Professional

@vscodebot vscodebot bot added the css-less-scss Issues and items concerning CSS,Less,SCSS styling label May 21, 2018
@aeschli
Copy link
Contributor

aeschli commented May 22, 2018

The css support validated against the standard css spec. To turn off validation use
"css.validate": false

The request to support css-modules is #14539

@aeschli aeschli closed this as completed May 22, 2018
@mfour-merickson
Copy link

I don't think disabling css validation completely is the correct approach for fixing this issue. Is there any other possible solution?

@aeschli
Copy link
Contributor

aeschli commented Jun 4, 2018

we have microsoft/vscode-css-languageservice#51 to improve the handling of unknown @ rules.

@raptoria
Copy link
Author

raptoria commented Jun 4, 2018

I agree, I'd prefer not to have to give up CSS validation to use an at-rule in VS Code

@mfour-merickson
Copy link

mfour-merickson commented Jun 4, 2018 via email

@mfour-merickson
Copy link

mfour-merickson commented Jun 4, 2018 via email

@aeschli
Copy link
Contributor

aeschli commented Jun 5, 2018

Progress in tracked in microsoft/vscode-css-languageservice#51.

@mfour-merickson If you can paste css examples where you get errors that would be helpful, so we can make sure these get fixed.

@raptoria
Copy link
Author

raptoria commented Jun 6, 2018

@aeschli this is the main error for me:
@value green: #aaf200;

error:
[css] at-rule unknown.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
css-less-scss Issues and items concerning CSS,Less,SCSS styling
Projects
None yet
Development

No branches or pull requests

3 participants