bynk.adapter.duplicate_binding
Error An adapter declared more than one binding clause.
An adapter's binding names the one TypeScript module that supplies its external providers, so there is one clause. With two, the compiler would have no way to say which module a provider comes from. Merge them into one clause; the module it names can import whatever others it needs.
Example
adapter weather { binding "./station.binding.ts" binding "./extra.binding.ts" // ✗ an adapter has one binding}
adapter weather { binding "./station.binding.ts" // ✓ one clause}In the Book
See also
- The grammar rule it governs:
binding_decl. - Every code in its category, Adapters, on the diagnostic index.
bynk explain bynk.adapter.duplicate_bindingshows the same from the installed toolchain, without a network.