szv-config-invalidA part of an szv config that does not have the shape szv reads.
A name in angle brackets is a value the message fills in.
config[csszyx] szv-config-invalid: The `szv` config is not an object (got <got>), so `szv` returns an empty sz object.
help: pass an object such as `{ base: { … }, variants: { … } }`.
docs: https://csszyx.com/e/szv-config-invalid
base[csszyx] szv-config-invalid: `base` in the `szv` config is not an sz object (got <got>), so `szv` ignores it.
help: make `base` an sz object, such as `{ p: 4 }`.
docs: https://csszyx.com/e/szv-config-invalid
variants[csszyx] szv-config-invalid: `variants` in the `szv` config is not an object (got <got>), so `szv` returns only `base`.
help: make `variants` an object of dimensions, such as `{ size: { sm: { p: 2 } } }`.
docs: https://csszyx.com/e/szv-config-invalid
default-variants[csszyx] szv-config-invalid: `defaultVariants` in the `szv` config is not an object (got <got>), so no variant gets a default value.
help: make `defaultVariants` an object of values, such as `{ size: 'sm' }`.
docs: https://csszyx.com/e/szv-config-invalid
dimension[csszyx] szv-config-invalid: `variants.<dimension>` is not an object of values (got <got>), so it adds no classes.
help: make `variants.<dimension>` an object that maps each value to an sz object.
docs: https://csszyx.com/e/szv-config-invalid
variant-value[csszyx] szv-config-invalid: `variants.<dimension>.<token>` is not an sz object (got <got>), so it is ignored.
help: make it an sz object, such as `{ p: 4 }`, or `null` to add nothing.
docs: https://csszyx.com/e/szv-config-invalid
The values this diagnostic names.
| Name | Type | |
|---|---|---|
form | 'config' | 'base' | 'variants' | 'default-variants' | 'dimension' | 'variant-value' | |
dimension | string | optional |
token | string | optional |
got | string |