Skip to content

DF0010: Cannot Change Command ID

Package: devframe

Message

Cannot change the id of a command. Use register() to add new commands.

Cause

DevToolsCommandsHost.update() rejects id changes because commands are keyed by id.

Fix

Keep the id identical on update(patch), or call register() to create a new command.

Source

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

Migrated from

Previously documented as DTK0025 under @vitejs/devtools.

Released under the MIT License.