bynk.service.outside_context
Error A service was declared outside a context.
A service is a context's entry point: a call, a route, a schedule, a queue consumer, a socket. A commons holds only shared types and pure functions, and has no context to serve from. Move the service into a context. Logic it shares can stay in the commons, which the context then uses.
Example
commons shop
service probe { … } // ✗ a commons holds no entry points
context shop
service probe { … } // ✓In the Book
See also
- The grammar rule it governs:
service_decl. - Every code in its category, Services, on the diagnostic index.
bynk explain bynk.service.outside_contextshows the same from the installed toolchain, without a network.