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

yew workers broken since 0.18 due to minification: Can't find variable: wasm_bindgen #643

Closed
extrawurst opened this issue Dec 18, 2023 · 0 comments · Fixed by #642
Closed
Milestone

Comments

@extrawurst
Copy link

extrawurst commented Dec 18, 2023

reproducer to our discord conversation:

run yew example: https://github.com/yewstack/yew/tree/master/examples/web_worker_prime

in release:

trunk serve --release --open

in the browser it will not work and show the following error in the console:

ReferenceError: Can't find variable: wasm_bindgen

in debug or with disabled minification it will work!

Screenshot 2023-12-18 at 19 49 53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants