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

Error on Windows, cargo-leptos tries to find .exe instead of .wasm file #361

Open
Boscop opened this issue Sep 9, 2024 · 0 comments
Open

Comments

@Boscop
Copy link

Boscop commented Sep 9, 2024

I tried to build https://github.com/benwis/leptos-fermyon-spin-blog-demo on Windows, but I get this error:

> spin up --build
[...]
      Cargo finished cargo build --package=leptos_blog_demo_finished --lib --target=wasm32-wasi --no-default-features --features=ssr --release
Error: at `C:\Users\me\scoop\persist\rustup\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cargo-leptos-0.2.20\src\compile\server.rs:40:22`

Caused by:
    0: at `C:\Users\me\scoop\persist\rustup\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cargo-leptos-0.2.20\src\service\site.rs:117:44`
    1: Could not read "target\\wasm32-wasi\\release\\leptos_blog_demo_finished.exe" at `C:\Users\me\scoop\persist\rustup\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cargo-leptos-0.2.20\src\ext\fs.rs:44:10`
    2: The system cannot find the file specified. (os error 2)

Btw, these files exist: target\wasm32-wasi\release\leptos_blog_demo_finished.wasm and target\front\wasm32-unknown-unknown\release\leptos_blog_demo_finished.wasm

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

1 participant