bynk.exports.derived_capability
Error exports capability names a derived capability, whose instance stays with its context.
A derived capability is an instance of a platform resource, such as a KV namespace, and its data belongs to the context that declares it. Exporting it would let another context read and write that data directly. Keep it out of exports capability; another context reaches the data through this context's services.
Example
exports capability { Sessions }
capability Sessions = Kv // ✗ an instance cannot be exported
capability Sessions = Kv // ✓ private to this contextIn the Book
See also
- The grammar rule it governs:
exports_decl. - Every code in its category, Exports, on the diagnostic index.
bynk explain bynk.exports.derived_capabilityshows the same from the installed toolchain, without a network.