Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 537 Bytes

File metadata and controls

25 lines (14 loc) · 537 Bytes
outline deep

DF0024: Missing RPC Handler

Package: devframe

Migrated from DTK0004.

Message

Either handler or setup function must be provided for RPC function "{name}"

Cause

The RPC definition has neither a handler nor a setup returning { handler }. devframe has nothing to invoke when the function is called.

Fix

Add either handler: ... directly on the definition, or setup: ctx => ({ handler: ... }) if the handler depends on context.

Source

packages/devframe/src/rpc/handler.ts