-
Notifications
You must be signed in to change notification settings - Fork 114
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
Cargo install cargo-leptos fails #419
Comments
When building locally, swc_ecma_ast v5.0.1 is used --> no problem when using cargo install, swc_ecma_ast v5.0.2 is used --> compilation issue |
Posted an issue on SWC : swc-project/swc#9906 |
swc moves pretty fast and is unlikely to fix issues with old versions; Donny has already closed the linked issue. I tried bumping swc to 10.0 and it seems to build & work fine. |
For anyone who just ran into this and wants a quick fix, use
This uses the published Cargo.lock file instead of randomly updating dependencies. Maybe this should be mentioned on https://book.leptos.dev/ssr/21_cargo_leptos.html? |
Cargo install cargo-leptos fails with the following error:
Looks like swc has been recently updated and that is what is causing the error. In my compilation, swc v9.0.2 was used.
Note: cloned cargo leptos and built it, absolutly no problem. It only happens with cargo install
The text was updated successfully, but these errors were encountered: