Skip to content

Development diagnostic codes ​

GhostVue reports API misuse in development with stable GHOST0xx codes. Each code is assigned once and is never reused, including after a warning is removed. Production builds should not contain these strings: the library ships process.env.NODE_ENV !== 'production' so the consumer bundler can dead-code-eliminate the diagnostic.

Console format:

text
[ghostvue GHOST001] <message> See <docs url>

This page is generated from packages/vue/src/dev-codes.ts. Update the catalog, then rewrite this file from renderGhostCodeDocs().

GHOST001 ​

Warning: Controlled and uncontrolled state mixed

A component switched from {from} to {to}. Pass the value prop for the lifetime of the instance, or omit it and use default*.

Related: ./architecture/component-state.md

GHOST002 ​

Warning: Dialog content missing accessible name

GhostDialogContent, GhostDrawerContent, and GhostCommandPaletteContent require an accessible name. Render GhostDialogTitle, GhostDrawerTitle, or GhostCommandPaletteTitle inside the content, or pass aria-label or aria-labelledby.

Related: ./components/dialog.md

GHOST003 ​

Warning: Alert dialog missing description

GhostDialogContent or GhostDrawerContent with role="alertdialog" should provide a description. Render GhostDialogDescription or GhostDrawerDescription inside the content, or pass aria-describedby.

Related: ./components/dialog.md

GHOST004 ​

Warning: DatePicker format callback threw

The GhostDatePicker format callback threw for {date}. The input shows the ISO YYYY-MM-DD text instead. Make format synchronous, pure, and total for valid CalendarDate values.

Related: ./components/date-picker.md

GHOST005 ​

Warning: Deprecated API used

{api} is deprecated since {since} and will be removed in {removal}.

Related: ./standards/component-stability.md

GHOST006 ​

Warning: Toast created during server rendering

toast() ran during server-side rendering and was ignored. The server never queues toasts; call toast() from client code such as onMounted or an event handler.

Related: ./components/toast.md

GHOST007 ​

Warning: Toast duration ignored

duration is ignored on toast "{id}" because {reason} toasts persist until dismissed. Remove duration, or make the toast informational.

Related: ./components/toast.md

GHOST008 ​

Warning: Invalid toast option

{option} {value} is invalid; expected {expected}. Using {fallback} instead.

Related: ./components/toast.md

GHOST009 ​

Warning: Toast id uses the reserved prefix

Toast id "{id}" starts with the generated-id prefix "{prefix}". It is treated as an update of an existing toast only; omit id for a generated one or choose another explicit id.

Related: ./components/toast.md

GHOST010 ​

Warning: Many toasts waiting

{count} toasts are waiting behind the visible stack. Check for runaway toast() calls, and reuse an id to update a toast in place.

Related: ./components/toast.md

GHOST011 ​

Warning: Toast without a title

toast() and update() need a non-empty title. The {call} call was ignored.

Related: ./components/toast.md

GHOST012 ​

Warning: Duplicate command palette item id

Two GhostCommandPaletteItem components in one palette use the id "{id}". Give every command a unique, stable id; duplicates share one highlight and registry entry.

Related: ./components/command-palette.md

GHOST013 ​

Warning: Duplicate scroll spy target

Two GhostScrollSpyLink components in one GhostScrollSpy use the target "{target}". Each section id should appear once. Duplicate registrations resolve to the first enabled link in DOM order.

Related: ./components/scroll-spy.md

GHOST014 ​

Warning: GhostPresence surface not resolved

GhostPresence closed without a resolved surface element, so it unmounted immediately without an exit animation. When the default slot renders a fragment, several roots, or a GhostPortal/Teleport wrapper, bind :ref="setElement" (plus data-state and inert) on the animated element.

Related: ./components/presence.md

GHOST015 ​

Warning: External form attribute ignored in GhostCheckboxGroup

GhostCheckboxGroup does not support an external form attribute on {target}. Place the group inside its ancestor form instead; the form attribute was omitted so submission and reset stay aligned.

Related: ./components/checkbox-group.md

GHOST016 ​

Warning: Checkbox member model prop ignored

GhostCheckbox with value "{value}" inside GhostCheckboxGroup ignores {prop}. Bind v-model or defaultValue on GhostCheckboxGroup instead.

Related: ./components/checkbox-group.md

GHOST017 ​

Warning: Checkbox member name overridden by group

GhostCheckbox with value "{value}" passed name="{itemName}", which differs from GhostCheckboxGroup name="{groupName}". Using the group name.

Related: ./components/checkbox-group.md

GHOST018 ​

Warning: Duplicate checkbox group option value

Two GhostCheckbox members in one GhostCheckboxGroup share the value "{value}". Give every member a unique value.

Related: ./components/checkbox-group.md

GHOST019 ​

Warning: GhostSelect multiple mode changed after setup

GhostSelect "multiple" was read at setup as {initial} and changed to {next}. Keep the mode fixed for the lifetime of the instance.

Related: ./components/select.md

GHOST020 ​

Warning: GhostDataGrid without an accessible name

GhostDataGrid has neither aria-label nor aria-labelledby. Name the grid so screen readers announce what it contains.

Related: ./components/data-grid.md

GHOST021 ​

Warning: Duplicate GhostDataGrid row or column ID

GhostDataGrid has more than one {axis} with the ID "{id}". IDs must be unique; the first occurrence keeps focus and edits, and behavior with duplicates is unsupported.

Related: ./components/data-grid.md

GHOST022 ​

Warning: More than one GhostDataGrid row header column

GhostDataGrid columns "{first}" and "{other}" both set rowHeader. Only the first is rendered as the row header.

Related: ./components/data-grid.md

GHOST023 ​

Warning: GhostDataGrid editors share one name

GhostDataGrid column "{column}" is editable, but the grid has no rowHeader column and the column has no editorLabel, so editors in different rows share the name "{header}". Add a rowHeader column or an editorLabel.

Related: ./components/data-grid.md

GHOST024 ​

Warning: Empty GhostDataGrid without an empty slot

GhostDataGrid has no data cells and no #empty slot. Provide empty-state content so the focusable empty grid explains why it is empty.

Related: ./components/data-grid.md

GHOST025 ​

Warning: GhostStepper without steps

GhostStepper has no steps, but its current value is "{value}". Pass the ordered steps array. An uncontrolled stepper with no defaultValue stays silent while its steps load.

Related: ./components/stepper.md

GHOST026 ​

Warning: Duplicate GhostStepper step value

GhostStepper has more than one step with the value "{value}". Values must be unique; the first step with that value is used for the current step and for moves.

Related: ./components/stepper.md

GHOST027 ​

Warning: GhostStepper value matches no step

GhostStepper value "{value}" matches no step, so no step is current. Set the value to a step that exists; the stepper does not repair it.

Related: ./components/stepper.md

GHOST028 ​

Warning: stickToBottom ignored on a horizontal GhostScrollArea

GhostScrollArea has stickToBottom with orientation="horizontal". Stick-to-bottom follows the bottom of a vertical scroller only, so it is ignored. Use orientation="vertical" or "both", or remove stickToBottom.

Related: ./components/scroll-area.md

GHOST029 ​

Warning: submitOnEnter without a form

GhostTextarea has submitOnEnter but no form owner, so Enter inserts a newline instead of submitting. Place the textarea inside a form element or GhostForm, or remove submitOnEnter.

Related: ./components/textarea.md

GHOST030 ​

Warning: GhostListbox without an accessible name

GhostListbox has neither aria-label nor aria-labelledby. Name the listbox so screen readers announce what its options are.

Related: ./components/listbox.md

GHOST031 ​

Warning: Duplicate GhostListbox option value

More than one GhostListboxOption in one GhostListbox has the value "{value}". Values must be unique; the first option in rendered order owns the value and the others cannot be selected.

Related: ./components/listbox.md

GHOST032 ​

Warning: GhostListboxGroup without a label

GhostListboxGroup has no GhostListboxLabel and no aria-label or aria-labelledby. Render a GhostListboxLabel inside the group, or pass aria-label.

Related: ./components/listbox.md

GHOST033 ​

Warning: GhostListboxGroup inside a list element

GhostListboxGroup is inside a GhostListbox rendered as a {tag} element, which would put a div directly inside a list. Use the default div root for grouped listboxes.

Related: ./components/listbox.md

GHOST034 ​

Warning: GhostListbox multiple mode changed after setup

GhostListbox "multiple" was read at setup as {initial} and changed to {next}. The change is ignored; keep the mode fixed for the lifetime of the instance.

Related: ./components/listbox.md

GHOST035 ​

Warning: GhostCodeBlock slot contains a pre element

GhostCodeBlock found a pre element inside its code part. The default slot is phrasing content inside the component's own pre and code elements, so render highlighter output without its wrapper (for example Shiki with structure: 'inline').

Related: ./components/code-block.md

GHOST036 ​

Warning: Invalid GhostCodeBlock foldLines

GhostCodeBlock foldLines is {value}, which is not a positive integer, so the fold is disabled. Pass a whole number of lines greater than 0, or omit foldLines.

Related: ./components/code-block.md

GHOST037 ​

Warning: GhostListbox selectionFollowsFocus with multiple

GhostListbox selectionFollowsFocus applies to single selection only and is ignored with multiple. Remove it, or use Shift with the arrow keys to extend a multiple selection.

Related: ./components/listbox.md

GHOST038 ​

Warning: GhostListbox inside a self-focused context menu trigger

GhostListbox is inside a GhostContextMenuTrigger with focusTarget="self", which takes focus away from the option the user opened the menu on. Set focus-target="descendant" on the trigger.

Related: ./components/listbox.md

GHOST039 ​

Warning: Query builder field set up incorrectly

Query builder field {field}: {problem}.

GHOST040 ​

Warning: Query builder edit ignored

useGhostQueryBuilder {method}("{id}") did nothing: {reason}.

GHOST041 ​

Error: Query builder createId returned an unusable id

createId("{kind}") returned {id}, which is empty, "root", or already used in the draft. The builder used "{replacement}" instead. Return a unique, non-empty string for every call.

GHOST042 ​

Warning: Query builder default expression malformed

defaultExpression could not be read ({reason}). The builder starts with an empty filter. Check the saved filter with validateQueryExpression before passing it.

GHOST043 ​

Warning: GhostQueryBuilder without an accessible name

GhostQueryBuilder has neither aria-label nor aria-labelledby. Name the builder, for example with the id of the visible heading "Issue filter".

Related: ./components/query-builder.md

GHOST044 ​

Warning: DataTable query selection unavailable

GhostDataTable query selection: {problem}.

Related: ./components/data-table.md

GHOST045 ​

Warning: GhostGantt without an accessible name

GhostGantt has neither aria-label nor aria-labelledby. Name the chart; the element named by aria-labelledby is also where focus goes when the last row is removed.

Related: ./components/gantt.md

GHOST046 ​

Warning: Duplicate GhostGantt ID

GhostGantt has more than one {kind} with the ID "{id}". IDs must be unique; the first occurrence is used and later ones are ignored.

Related: ./components/gantt.md

GHOST047 ​

Warning: GhostGantt parentId cannot be used

GhostGantt task "{id}" has parentId "{parentId}", which {problem}. The row renders at the root. Fix the parentId or set it to null.

Related: ./components/gantt.md

GHOST048 ​

Warning: GhostGantt span finishes before it starts

GhostGantt task "{id}" has a span whose finish is before its start, so it renders as not scheduled. finish is inclusive and must be on or after start.

Related: ./components/gantt.md

GHOST049 ​

Warning: GhostGantt range finishes before it starts

GhostGantt range runs from {start} to {finish}, which is backwards, so no timeline is rendered. range.finish is inclusive and must be on or after range.start.

Related: ./components/gantt.md

GHOST050 ​

Warning: Empty GhostGantt without an empty slot

GhostGantt has no tasks and no empty slot, so the focused chart has nothing to describe it. Provide an empty slot that says why the schedule is empty.

Related: ./components/gantt.md

GHOST051 ​

Warning: GhostBoard without an accessible name

GhostBoard has neither aria-label nor aria-labelledby. Name the board; the name goes to its scroll region, which is focusable so keyboard users can scroll it.

Related: ./components/board.md

GHOST052 ​

Warning: Duplicate GhostBoard ID

GhostBoard has more than one {kind} with the ID "{id}". IDs must be unique; the first occurrence is used and later ones are not rendered.

Related: ./components/board.md

GHOST053 ​

Warning: GhostBoard card in an unknown column

GhostBoard card "{id}" has columnId "{columnId}", which names no column in columns, so the card is not rendered.

Related: ./components/board.md

GHOST054 ​

Warning: Movable GhostBoard card without requestMove

GhostBoard card "{id}" sets movable: true, but requestMove is not bound, so no card offers Move to…. Bind requestMove to make the board movable.

Related: ./components/board.md

GHOST055 ​

Warning: Accepted GhostBoard move did not change the records

GhostBoard accepted a move of card "{id}", but after the next update the card is still where it was. Apply the move to cards before or in the same tick as resolving { status: 'accepted' }.

Related: ./components/board.md

GHOST056 ​

Warning: GhostBoard requestMove failed

GhostBoard requestMove for card "{id}" {problem}. The move is treated as rejected with messages.moveFailed. Return { status: 'accepted' } or { status: 'rejected', message }.

Related: ./components/board.md