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

[BUG] Basic Hello World template doesn't start and fails with the attached message #672

Closed
1 task done
saikatdas0790 opened this issue Nov 24, 2024 · 7 comments
Closed
1 task done

Comments

@saikatdas0790
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What version of workers-rs are you using?

0.4.2

What version of wrangler are you using?

3.90.0

Describe the bug

Fails to start with this error message

image

Tried both stable and nightly toolchains

Running an Ubuntu instance on Windows WSL2

Steps To Reproduce

  • Install latest Rust toolchain using rustup on Ubuntu
  • cargo generate
  • npx wrangler dev
@spigaz
Copy link
Contributor

spigaz commented Nov 24, 2024

This is most likely a duplicate of #668, I believe you should try the workaround that is suggested... Or to try to downgrade your rust version.

@saikatdas0790
Copy link
Author

@spigaz Thank you for the response

Tried the suggested workaround, but build still fails with this error:
image

Here's a repo with the current state of things:
https://github.com/saikatdas0790/cloudflare-workers-rs-hello-world

@spigaz
Copy link
Contributor

spigaz commented Nov 24, 2024

I haven't tried the workaround, but other users are downgrading to rust 1.81 for now and say that it works for them.

But I would try it by cloning the workers-rs repository, then updating its references to the git version of wasm-bindgen.

Then in my project I would update it to use the git version of wasm-bindgen and the clone I did of workers-rs that references the git version of wasm-bindgen.

@saikatdas0790
Copy link
Author

Got it. I'm just playing around with this, so can wait a bit.

How long do you reckon it'll take for these changes to get merged and packaged to crates.io so that I can just do the cargo generate step and have everything work as expected?

Should I expect like a week or two or is this blocked on something else that could take months?

@spigaz
Copy link
Contributor

spigaz commented Nov 25, 2024

I don't know, there are a lot of people with the same issue, so I'm guessing that as soon as wasm-bindgen releases the next version, someone will open a PR and it will be merged, followed by a release.

If I had to guess, about two weeks.

@spigaz
Copy link
Contributor

spigaz commented Nov 29, 2024

@saikatdas0790 The latest version of wasm-bindgen was just released:

https://github.com/rustwasm/wasm-bindgen/releases/tag/0.2.96

You can give it a try and report if its okay...

@saikatdas0790
Copy link
Author

Looks like it's working now. Will play around more and come back if additional difficulties. Thanks for the help ☺️

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