-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0' #2776
Comments
As a workaround until this issue is fixed: rustwasm/wasm-bindgen#2776
As a workaround, I decided to use the old version until this is fixed:
|
Hit this too. In my case This looks like #2679 happening again, the correct workaround is using same versions, as using So in your case @Badel2 I see |
i am using trunk and just running |
Thank you @kuviman, I forgot that there is also a Perhaps to avoid the same issue in the future, the |
I had the same issue and in my case I was using a workspace for my backend and frontend crates and the Cargo.lock in the workspace had the correct versions but there was another Cargo.lock in the frontend crate dir that had the wrong version. Once I deleted the latter everything worked. |
I just hit this too after an update to v0.2.84. I believe for me too this is because of a mismatch of the |
This should be fixed by #3205 for any future updates. It's still possible for this to come up when going from 0.2.83 -> 0.2.84 if the library is the one that gets updated, since the fix is only in v0.2.84 of the CLI, but any future updates should give a proper error message like this:
|
Yes I can confirm that updating the cli fixed the issue:
|
For trunk users, make sure the |
Describe the Bug
I am unable to use wasm-bindgen. It was working fine with wasm-bindgen 0.2.78, stopped working in wasm-bindgen 0.2.79
Steps to Reproduce
The text was updated successfully, but these errors were encountered: