Skip to content

DF0006: RPC Function Not Registered

Package: devframe

Message

RPC function "{name}" is not registered

Cause

RpcFunctionsHost.invokeLocal() was called with a method name that has not been registered on this host.

Fix

Register the function with ctx.rpc.register(defineRpcFunction({ name })) before invoking it.

Source

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

Migrated from

Previously documented as DTK0020 under @vitejs/devtools.

Released under the MIT License.