options-object-requiredAn options argument that is not the one object the call takes.
code is this id.A name in angle brackets is a value the message fills in.
transform[csszyx] options-object-required: `transform` takes its options in one object, so a second argument that is not an object, or a third argument, is refused.
help: pass the prefix and the mangle map as keys: `transform(sz, { prefix: 'hover:', mangleMap })`.
docs: https://csszyx.com/e/options-object-required
A production browser bundle throws this in place of it:
[csszyx] options-object-required: {"form":"transform","options":["<options>"],"call":"<call>"} https://csszyx.com/e/options-object-required
csszyx-turbopack[csszyx] options-object-required: `csszyxTurbopack` takes one object, with the config to extend under `turbopack`, so a second argument is refused.
help: write `csszyxTurbopack({ turbopack: <your config>, ...options })`; loader options go beside `turbopack`.
docs: https://csszyx.com/e/options-object-required
A production browser bundle throws this in place of it:
[csszyx] options-object-required: {"form":"csszyx-turbopack","options":["<options>"],"call":"<call>"} https://csszyx.com/e/options-object-required
csszyx-turbopack-option[csszyx] options-object-required: `csszyxTurbopack` has no option(s) `<options>`, so the call is refused.
help: use `config`, `glob`, `importedStaticSz`, `mergeCoveredClasses`, `parserMode`, `safelistOutputFile`, `tailwindStylesheet` or `turbopack`; a Turbopack setting such as `rules` goes under `turbopack`.
docs: https://csszyx.com/e/options-object-required
A production browser bundle throws this in place of it:
[csszyx] options-object-required: {"form":"csszyx-turbopack-option","options":["<options>"],"call":"<call>"} https://csszyx.com/e/options-object-required
class-name-to-sz-object[csszyx] options-object-required: `classNameToSzObject` takes its options in one object, so a second argument that is not an object, or a third argument, is refused.
help: pass the migration map under `customMap`: `classNameToSzObject(className, { customMap })`.
docs: https://csszyx.com/e/options-object-required
A production browser bundle throws this in place of it:
[csszyx] options-object-required: {"form":"class-name-to-sz-object","options":["<options>"],"call":"<call>"} https://csszyx.com/e/options-object-required
class-name-to-sz-object-option[csszyx] options-object-required: `classNameToSzObject` has no option(s) `<options>`, so the call is refused.
help: pass the migration map under `customMap`: `classNameToSzObject(className, { customMap })`.
docs: https://csszyx.com/e/options-object-required
A production browser bundle throws this in place of it:
[csszyx] options-object-required: {"form":"class-name-to-sz-object-option","options":["<options>"],"call":"<call>"} https://csszyx.com/e/options-object-required
serialize-manifest[csszyx] options-object-required: `serializeManifest` takes its options in one object, so a second argument that is not an object, or a third argument, is refused.
help: pass the flag as a key: `serializeManifest(manifest, { pretty: true })`.
docs: https://csszyx.com/e/options-object-required
A production browser bundle throws this in place of it:
[csszyx] options-object-required: {"form":"serialize-manifest","options":["<options>"],"call":"<call>"} https://csszyx.com/e/options-object-required
migrate-source[csszyx] options-object-required: `migrateSource` takes the path under `filename` in one options object, so a second argument without it, or a third argument, is refused.
help: pass the path as a key beside the other options: `migrateSource(source, { filename: 'Card.tsx' })`.
docs: https://csszyx.com/e/options-object-required
A production browser bundle throws this in place of it:
[csszyx] options-object-required: {"form":"migrate-source","options":["<options>"],"call":"<call>"} https://csszyx.com/e/options-object-required
engine-call[csszyx] options-object-required: `<call>` takes its options in one object, so a second argument that is not an object, or a third argument, is refused.
help: move every argument after the first into one object, as in `transformSource(source, { filename: 'Card.tsx' })` or `scanModuleLinks(files, { registryEntries, parser })`.
docs: https://csszyx.com/e/options-object-required
A production browser bundle throws this in place of it:
[csszyx] options-object-required: {"form":"engine-call","options":["<options>"],"call":"<call>"} https://csszyx.com/e/options-object-required
The values this diagnostic names.
| Name | Type | |
|---|---|---|
form | 'transform' | 'csszyx-turbopack' | 'csszyx-turbopack-option' | 'class-name-to-sz-object' | 'class-name-to-sz-object-option' | 'serialize-manifest' | 'migrate-source' | 'engine-call' | |
options | string[] | optional |
call | string | optional |