dioxus
dioxus copied to clipboard
dx bundle requires an explicit target
I've been working with dx serve fine without specifying a command-line target (I suppose because it's already specified in Dioxus.toml).
With dx bundle it's not the same and I have to run it like this:
dx bundle --platform web --release --target wasm32-unknown-unknown
If I don't, I get a platform error:
10 | ... compile_error!("The geolocation module is not supported on this platform....
See my issue over at sdk: https://github.com/DioxusLabs/sdk/issues/51#issuecomment-2480139972
I cannot reproduce this on Windows 10 & the latest Git CLI. Running dx bundle --trace --verbose shows the correct cargo target is being used.
If you have the time, would you be able to test the latest CLI?
cargo install --git https://github.com/dioxuslabs/dioxus dioxus-cli