dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

dx bundle requires an explicit target

Open alper opened this issue 1 year ago • 1 comments

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

alper avatar Nov 18 '24 08:11 alper

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

DogeDark avatar Dec 06 '24 22:12 DogeDark