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
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: