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

Web Worker example #44

Open
dakom opened this issue Sep 21, 2018 · 9 comments
Open

Web Worker example #44

dakom opened this issue Sep 21, 2018 · 9 comments

Comments

@dakom
Copy link

dakom commented Sep 21, 2018

Would be helpful to have a web-worker example... I had lots of trouble getting that to load

@xtuc
Copy link
Member

xtuc commented Sep 21, 2018

Would you mind sending a PR? What were your troubles?

@dakom

This comment was marked as abuse.

@sendilkumarn
Copy link
Member

@dakom can you check this issue rustwasm/wasm-bindgen#799 I think it is the same. Run cargo update

@dakom

This comment was marked as abuse.

@dakom

This comment was marked as abuse.

@sendilkumarn
Copy link
Member

@dakom awesome, let me have a look 👍

@dakom

This comment was marked as abuse.

@scottjmaddox
Copy link

I'm running into the same error when trying to load a wasm-bindgen crate inside a web worker using webpack:

TypeError: Cannot read property '../client-wasm-worker/pkg/client_wasm_worker_bg.wasm' of undefined

This is only after using this workaround for a window is not defined error.

Any help would be greatly appreciated.

@ashleygwilliams
Copy link
Member

https://github.com/VictorGavrish/rust-wasm-worker-template this is also a worker example!

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

No branches or pull requests

5 participants