Skip to content
These are temporary community docs. The official docs are in progress.Help improve them
Markless
Esc
↑↓navigate↵open⌘Jpreview
On this page

MARKLESS_CALLBACK_SLOT_SOURCE_UNSUPPORTED

A callback slot can only be filled by the widget root’s own callback prop: a Markless compiler error.

Error from the compiler, while it builds your .tsrx files.

What happened

Markless prints the message, the reason, and a suggestion:

MARKLESS_CALLBACK_SLOT_SOURCE_UNSUPPORTED: "<componentName>" assigns <valueSource> into the "<slotName>" callback slot of shared() "<definitionName>", and <valueSource> is not one of this component's callback props.
A callback slot is a compile-time route, not a stored value: the build records that this widget root’s callback prop answers the slot, and a part invoking the slot dispatches straight to the consumer’s handler. A local function has no consumer to route to, so nothing could be recorded and the call would silently do nothing.
Declare the handler as a prop of <componentName> and assign that prop: <slotName> = <thatProp>.
https://markless.dev/errors/MARKLESS_CALLBACK_SLOT_SOURCE_UNSUPPORTED

Words in angle brackets change from case to case.

How to fix it

Start with the suggestion in the message above.

This page has no guide yet. Help write it.

Where it comes from

@markless/compiler raises this code. Source:

Read how to read a Markless error, or go back to all error codes.

Was this page helpful?