Skip to content

DF0002: Cannot Change Dock ID

Package: devframe

Message

Cannot change the id of a dock. Use register() to add new docks.

Cause

DevToolsDockHost.update() rejects id changes because docks are keyed by id.

Fix

Keep the id on update(patch) identical to the registered value, or call register() with a new id (and optionally force: true).

Source

packages/devframe/src/node/host-docks.ts

Migrated from

Previously documented as DTK0016 under @vitejs/devtools.

Released under the MIT License.