bynk.actor.outside_context
Error An actor was declared outside a context (e.g. in a commons).
An actor says who may call a handler and what the compiler then knows about them. Only a context has handlers, and an actor's identity is sealed to the context that declares it, so only a context may declare one. A commons is shared code that other units uses. Move the actor into the context whose services take it.
Example
commons shop
actor User { auth = None } // ✗ a commons has no handlers
context shop
actor User { auth = None } // ✓ declared where it is usedIn the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.outside_contextshows the same from the installed toolchain, without a network.