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

without-a-bundler-no-modules example does not build #2179

Closed
j-devel opened this issue Jun 2, 2020 · 3 comments
Closed

without-a-bundler-no-modules example does not build #2179

j-devel opened this issue Jun 2, 2020 · 3 comments
Labels

Comments

@j-devel
Copy link
Contributor

j-devel commented Jun 2, 2020

Describe the Bug

The without-a-bundler-no-modules example does not build.

Steps to Reproduce

  1. git clone https://github.com/rustwasm/wasm-bindgen
  2. cd wasm-bindgen/examples/without-a-bundler-no-modules/
  3. wasm-pack build --target no-modules
  4. See the error below.

Expected Behavior

Build finishes without errors.

Actual Behavior

Build fails leaving an error (using rustc 1.45.0-nightly (a74d1862d 2020-05-14)):

thread 'main' panicked at 'internal error: entered unreachable code', crates/cli-support/src/decode.rs:157:1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Running the wasm-bindgen CLI
Caused by: failed to execute `wasm-bindgen`: exited with exit code: 101

Additional Context

It seems like a regression after merging #2105
The same build works before the merge.

@j-devel j-devel added the bug label Jun 2, 2020
@wattux
Copy link

wattux commented Jun 2, 2020

hey there. We ran into the same thing yesterday here. Turns out you have to copy the example's folder (in your case without-a-bundler-no-modules) somewhere out of the wasm-bindgen repo

@alexcrichton
Copy link
Contributor

Indeed yes I believe this is the same issue, closing in favor of that.

@j-devel
Copy link
Contributor Author

j-devel commented Jun 2, 2020

Confirmed! Thanks for pointing it out @wattux

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

No branches or pull requests

3 participants