parse-error

A file the parser rejected, which contributes no classes.

Message

A name in angle brackets is a value the message fills in.

syntax

[csszyx] parse-error: Syntax error: <parserMessage>.
  help: fix the syntax at this position.
  note: the file is left unchanged.
  docs: https://csszyx.com/e/parse-error

summary

[csszyx] parse-error: This file could not be parsed (syntax errors: <errorCount>).
  help: fix the syntax errors reported for this file.
  note: the file is left unchanged.
  docs: https://csszyx.com/e/parse-error

panicked

[csszyx] parse-error: The parser stopped at a syntax error it could not recover from.
  help: fix the syntax error reported for this file.
  note: the file is left unchanged.
  docs: https://csszyx.com/e/parse-error

expression

[csszyx] parse-error: This `sz` value could not be parsed as a JavaScript expression.
  help: write the value as an object literal, such as `{ p: 4 }`.
  note: the attribute is left as written, and no class is generated for it.
  docs: https://csszyx.com/e/parse-error

prescan

[csszyx] parse-error: The prescan could not parse this file, so none of its classes reached the safelist.
  help: fix the syntax error, or check that the file extension matches its contents.
  note: its classes produce no CSS unless another source names them.
  docs: https://csszyx.com/e/parse-error

These values are worked out from the args:

Level

Default: error under recommended, error under atomic. Set it in csszyx.config: rules: { 'parse-error': 'warn' }.

The level sets how the build and csszyx check report it. It does not change a console line, and it does not stop a thrown error.

Arguments

The values this diagnostic names.

NameType
form'syntax' | 'summary' | 'panicked' | 'expression' | 'prescan'
messagestringoptional; text from another tool; may change between its versions
errorCountnumberoptional