config-unloadable

A csszyx.config that could not be loaded, so the default levels apply.

Message

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

load

[csszyx] config-unloadable: This file could not be loaded, so the `recommended` levels apply.
  help: fix the error the loader reported.
  note: the loader reported: <reason>.
  docs: https://csszyx.com/e/config-unloadable

typescript-in-js

[csszyx] config-unloadable: This file holds TypeScript syntax under a JavaScript name, so it could not be loaded and the `recommended` levels apply.
  help: rename it to `<renameTo>`.
  note: the loader reported: <reason>.
  docs: https://csszyx.com/e/config-unloadable

legacy-template

[csszyx] config-unloadable: This is the file `csszyx init` 0.17 and earlier wrote, which does not load, so it is ignored.
  help: replace it with `export default defineConfig({ diagnostics: { … } })`, importing `defineConfig` from `csszyx`, or delete it.
  note: the loader reported: <reason>.
  docs: https://csszyx.com/e/config-unloadable

worker

[csszyx] config-unloadable: This file could not be loaded in <lane>, so the levels in `.csszyx/diagnostic-policy.json` apply, or the `recommended` levels when that file does not exist.
  help: make the file load in plain Node; `csszyx next prebuild` and `csszyx next watch` write `.csszyx/diagnostic-policy.json` for <lane>.
  note: the loader reported: <reason>.
  docs: https://csszyx.com/e/config-unloadable

Arguments

The values this diagnostic names.

NameType
form'load' | 'typescript-in-js' | 'legacy-template' | 'worker'
reasonstringtext from another tool; may change between its versions
lanestringoptional
renameTostringoptional