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.
GitHub
GitHub - Lidne/plasmo_example
Contribute to Lidne/plasmo_example development by creating an account on GitHub.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server