ChillyDudas
ChillyDudas3d ago

deno compile --include anything.wasm : relative import not prefixed error

I want to include a wasm file to load in a webview for a native program. The deno program itself does not actually load the wasm module. However, Deno insists on checking the import paths:
error: Relative import path "GOT.mem" not prefixed with / or ./ or ../ and not in import map ...
error: Relative import path "GOT.mem" not prefixed with / or ./ or ../ and not in import map ...
I don't believe it's necessary in this case. Any workarounds?
1 Reply
ChillyDudas
ChillyDudasOP3d ago
You can change the filename to not have a .wasm file extension, which works well enough.

Did you find this page helpful?