leptos-rs / cargo-leptos

Build tool for Leptos (Rust)
MIT License
315 stars 88 forks source link

`cargo leptos watch` fails when CARGO_TARGET_DIR is defined #186

Closed rocket-matt closed 8 months ago

rocket-matt commented 9 months ago

When CARGO_TARGET_DIR is defined to redirect target files to a single folder (so we don't have target folders all over out harddisks), the command cargo leptos watch fails.

You can recreate the problem thus:

mkdir ~/.cargo-target
export CARGO_TARGET_DIR=~/.cargo-target
... create a new project via cargo leptos new
cd <new-folder>
cargo leptos watch