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

template projects fail to build in version 0.6.14 #2833

Closed
c0per opened this issue Aug 14, 2024 · 2 comments
Closed

template projects fail to build in version 0.6.14 #2833

c0per opened this issue Aug 14, 2024 · 2 comments

Comments

@c0per
Copy link

c0per commented Aug 14, 2024

Describe the bug
A newly created leptos project (using cargo leptos new --git leptos-rs/start-axum) fails to compile.

To Reproduce
Steps to reproduce the behavior:

  1. Run cargo leptos new --git leptos-rs/start-axum and choose not to use nightly features. (I haven't tested if the nightly fails too)
  2. Go to the newly created project and run cargo leptos watch
  3. See the error

Expected behavior
It runs correctly.

Screenshots
image

What seems to be the problem
The newly merged PR #2828 seems to be the problem. It updates web-sys from 0.3.69 to 0.3.70. To silence some deprecation warnings, it use some newly added api of web-sys 0.3.70 and correctly update web-sys dependency.

But the 0.6 branch has a problem, PR #2830 intend to do the same thing, but it forget to update web-sys dependency of server-fn.
So the 0.6.14 version resolves to use web-sys 0.3.69, which fails to compile.

@c0per c0per changed the title template projects fail to build in version 0.3. template projects fail to build in version 0.6.14 Aug 14, 2024
@gbj
Copy link
Collaborator

gbj commented Aug 14, 2024

I think the version resolution here actually has to do with wasm-bindgen. The following steps resolve the issue:

  1. Install latest cargo-leptos so we can use wasm-bindgen 0.2.93
  2. Update Cargo.toml in the project to wasm-bindgen = "=0.2.93" (from 0.2.93)

The project builds.

@gbj
Copy link
Collaborator

gbj commented Aug 14, 2024

I've updated the templates so will close this, it should work.

@gbj gbj closed this as completed Aug 14, 2024
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