Lidne
Lidne
PD🧩 Plasmo Developers
Created by Lidne on 11/26/2024 in #👟framework
wasm file is not accessible from main world
I have an example repo(https://github.com/Lidne/plasmo_example) which shows the problem - wasm file is not accessible from main world. When I try to access it, js crashes with error
TypeError: Failed to fetch
at loadWasm (wasm_exec.js:684:28)
at 1aHT9.raw:~/assets/wasm/main.wasm (wasm_exec.js:692:1)
at newRequire (wasm_exec.2b77078d.js:72:24)
at wasm_exec.2b77078d.js:123:5
at runtime-837fc666e56a08ee.js:1:1
at esmodule-helpers.js:31:1
TypeError: Failed to fetch
at loadWasm (wasm_exec.js:684:28)
at 1aHT9.raw:~/assets/wasm/main.wasm (wasm_exec.js:692:1)
at newRequire (wasm_exec.2b77078d.js:72:24)
at wasm_exec.2b77078d.js:123:5
at runtime-837fc666e56a08ee.js:1:1
at esmodule-helpers.js:31:1
I have no other options, rather than accessing wasm from the main world, so I appreciate any suggestions.
2 replies