Skip to content

SW13002: Unterminated CSS block

A CSS block in your stylesheet is not closed.

This error occurs when a block in your stylesheet opens but does not close before the end of the file. The message gives the position as a byte offset from the start of the parsed text, counting from zero.

Reported

.card {
  color: blue;

SW13002: unterminated CSS block at byte 27

Fixed

.card {
  color: blue;
}

How to fix

  • Add the missing }, ), or ].
  • Also check for an unclosed string or comment before that position. An unclosed string can make the rest of the file look like one block.