eww icon indicating copy to clipboard operation
eww copied to clipboard

[BUG] error: unknown @ rule (@charset)

Open archallumin opened this issue 2 years ago • 3 comments

Checklist before submitting an issue

  • [X] I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • [X] I have specifically verified that this bug is not a common user error
  • [X] I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

While using eww, an error occurred in the @charset "utf-8"; code that I did not write. This code is not in the actual scss file, and I opened this issue because I thought it was a bug inside eww.

Reproducing the issue

  1. Write the scss file and save the file.

Expected behaviour

The eww widget must be styled.

Additional context

My scss file (line 1, column 1) image

Error log in eww image

archallumin avatar Nov 11 '23 14:11 archallumin

I get the same error. Minimal configuration: Almost an empty scss file and one component.

juanolon avatar Aug 19 '24 21:08 juanolon

So, after trying a lot, i found out that one of my files contained the character é as a comment. When removing it, i don't get the error anymore

juanolon avatar Aug 19 '24 23:08 juanolon

For me, it was a . The fact that your whole SCSS can fail because of a character in a comment... mh.

/* X─Y button icons and their text actions */
.button-hint {
  margin-top: 1em;
  padding-top: 0.8em;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

awsms avatar Apr 29 '25 12:04 awsms