parse-errorA file the parser rejected, which contributes no classes.
csszyx check lists it.code is this id.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:
<parserMessage>: The parser's message, without a closing period of its own.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.
The values this diagnostic names.
| Name | Type | |
|---|---|---|
form | 'syntax' | 'summary' | 'panicked' | 'expression' | 'prescan' | |
message | string | optional; text from another tool; may change between its versions |
errorCount | number | optional |