bynk.adapter.include_kind
Error An adapter binding … includes [ … ] entry is not a .wasm file; only WebAssembly modules can be included.
includes is for WebAssembly modules. The compiler generates a loader for each, ./x.wasm.js, that gives the binding a compiled module, and it picks them by the .wasm extension. Any other file has no such loader. Name a .wasm module.
Example
adapter math { binding "./math.binding.ts" includes ["./data.bin"] // ✗ not a `.wasm` file}
adapter math { binding "./math.binding.ts" includes ["./adder.wasm"] // ✓ a WebAssembly module}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_kindshows the same from the installed toolchain, without a network.