bynk.adapter.no_binding
Error An adapter declares an external provider but no binding module to supply it.
An external provider, provides Jwt = JoseJwt with no body, is written in TypeScript, not Bynk. The adapter's binding clause names that TypeScript module, resolved relative to the adapter's source file, and the compiler reads it to wire the provider in. The code fires when the clause is missing, and when the named file cannot be read. Add binding "./tokens.binding.ts" and create the file, exporting a class named for the provider.
Example
adapter tokens { // ✗ an external provider, but no binding clause provides Jwt = JoseJwt}
adapter tokens { binding "./tokens.binding.ts" // ✓ names the module that supplies JoseJwt provides Jwt = JoseJwt}In the Book
- Adapters › Anatomy
- Adapters
- Wrap a library as an adapter
- Share code between projects › Approve a dependency’s npm packages
See also
- The grammar rule it governs:
adapter_decl. - Every code in its category, Adapters, on the diagnostic index.
bynk explain bynk.adapter.no_bindingshows the same from the installed toolchain, without a network.