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

can't run this project #3

Open
passchaos opened this issue Feb 26, 2021 · 3 comments
Open

can't run this project #3

passchaos opened this issue Feb 26, 2021 · 3 comments

Comments

@passchaos
Copy link

When i run yarn dev-wasm-bindgen, it failed with message:

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `2`,
 right: `1`', /home/passchaos/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/wasm-bindgen-cli-support-0.2.70/src/js/binding.rs:166:9

version info:
wasm-bindgen 0.2.70 wasm-bindgen-cli 0.2.70

@happybeing
Copy link
Owner

Hey, thanks for trying this out and reporting the problem. The following works here:

git clone https://github.com/happybeing/svelte-wasi-with-rust
cd svelte-wasi-with-rust
yarn && yarn dev-wasm-bindgen

The issue is probably due to a difference in your setup, so you will need to supply information which allows me to compare our environments (OS, versions of prerequisites etc.). I'm only able to test on Ubuntu, but if you provide fuller information others may be able to help if you are using a different OS.

@passchaos
Copy link
Author

I found the cause of the problem. Please refer to this link: rustwasm/wasm-bindgen#2471

@happybeing
Copy link
Owner

happybeing commented Feb 28, 2021

Thanks for the update. I'm also using wasm-bindgen 0.2.70 and as noted I don't get an error. The issue is probably your using Rustc Nightly. Suggest you try rustc 1.47.0 (18bf6b4f0 2020-10-07).

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

2 participants