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

Using wasm-bindgen get errors with example tour #225

Closed
cossonleo opened this issue Mar 20, 2020 · 2 comments
Closed

Using wasm-bindgen get errors with example tour #225

cossonleo opened this issue Mar 20, 2020 · 2 comments
Labels
question Further information is requested
Milestone

Comments

@cossonleo
Copy link
Contributor

cossonleo commented Mar 20, 2020

I want to compile tour example to web platform and I follow the web/README.md, but I get a error:

cli: wasm-bindgen ../target/wasm32-unknown-unknown/debug/examples/tour.wasm --out-dir tour --web

error: failed to read `../target/wasm32-unknown-unknown/debug/examples/tour.wasm

And

cli: wasm-bindgen ../target/wasm32-unknown-unknown/debug/tour.wasm --out-dir tour --web

error: thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', crates/cli-support/src/descriptor.rs:202:15
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace.

wasm-bindgen: wasm-bindgen-0.2.59-x86_64-unknown-linux-musl binary.

@hecrj
Copy link
Member

hecrj commented Mar 20, 2020

The first error is caused by the README being out-of-date since we packaged the examples as crates in #164. I just fixed it in 93f5640.

The second error looks like a wasm-bindgen bug to me. I think you should report it there. I just tried and wasm-bindgen 0.2.58 works fine for me.

@hecrj hecrj added the question Further information is requested label Mar 20, 2020
@hecrj hecrj added this to the 0.1.0 milestone Mar 20, 2020
@cossonleo
Copy link
Contributor Author

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants