vicaryV
Denoβ€’14mo agoβ€’
2 replies
vicary

How to build WASM from Rust?

Following MDN's WASM tutorial I've built a wasm that runs in the browser.

Importing the generated wasm.js works fine, when I try to import the wasm_bg.wasm directly, it throws this error.
Uncaught TypeError: Relative import path "__wbindgen_placeholder__" not prefixed with / or ./ or ../
    at async <anonymous>:1:51


Not really understanding how bindgen works, but how do I build a Deno compatible WASM from Rust
image.png
Was this page helpful?