Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #1139

Open
2 of 3 tasks
Lidne opened this issue Nov 27, 2024 · 0 comments
Open
2 of 3 tasks

[BUG] #1139

Lidne opened this issue Nov 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Lidne
Copy link

Lidne commented Nov 27, 2024

What happened?

I have an example repo which shows the problem - wasm file is not accessible from the main world. When I try to load it, js crashes with error

wasm_exec.20a6b632.js:1 Uncaught Error: Could not resolve bundle with id 8Qtd2
    at t.exports.resolve (wasm_exec.20a6b632.js:1:10441)
    at gJRBH.7a08970a1e434d7c (wasm_exec.20a6b632.js:1:9628)
    at h (wasm_exec.20a6b632.js:1:705)
    at m (wasm_exec.20a6b632.js:1:809)
    at ag3pB.raw:~/assets/wasm/main.wasm (wasm_exec.20a6b632.js:1:1392)
    at h (wasm_exec.20a6b632.js:1:705)
    at ag3pB.raw:~/assets/wasm/main.wasm (wasm_exec.20a6b632.js:1:1090)
    at wasm_exec.20a6b632.js:1:1253

This happens only in prod build, while dev version of an extension works with no issues.
Go compile:

  • Windows:
$env:GOARCH="wasm"
$env:GOOS="js"
go build -o .\assets\wasm\main.wasm
  • Linux:
GOOS=js GOARCH=wasm go build -o .\assets\wasm\main.wasm

I have no other options, rather than accessing wasm from the main world, so I appreciate any suggestions on how to fix this issue.

Version

Latest

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

Chrome, Opera

Relevant log output

No response

(OPTIONAL) Contribution

  • I would like to fix this BUG via a PR

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@Lidne Lidne added the bug Something isn't working label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant