Skip to content
Playground(another site)

bynk.adapter.include_duplicate

Error An adapter binding … includes [ … ] list names one file more than once.

Each module is listed once: the compiler generates one loader, ./x.wasm.js, per file. Two entries for one file add nothing, and ./a.wasm and a.wasm are the same file once the path is normalised. Remove the repeat, or correct the name if a different module was meant.

Example

adapter math {
binding "./math.binding.ts" includes ["./a.wasm", "a.wasm"] // ✗ the same file twice
}
adapter math {
binding "./math.binding.ts" includes ["./a.wasm"] // ✓ listed once
}

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.include_duplicate shows the same from the installed toolchain, without a network.