Closed ra0x3 closed 10 months ago
Could you check if pr #42 fixes this for you?
The e-commerce example doesn't run in wasm on the client side. It runs on the server to generate server side rendered pages. You can run it with cargo run
or dx serve --platform desktop
. (The 0.4 version of the CLI dx serve
fixes the hanging issue and gives a more clear error)
Problem
I'm trying to compile the e-commerce example (as it seems to be one of the more fully-featured examples) but my compilation just hangs after
dioxus serve
Steps To Reproduce
Steps to reproduce the behavior:
cd ecommerce
dioxus serve
Expected behavior
Screenshots
Compiling ahash 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)
for about an hour[WARN] You appear to be creating a Dioxus project from scratch; we will use the default config [INFO] 🚅 Running build command... / Compiling futures-sink 0.3.28 (registry+https://github.com/rust-lang/crates.io-index) Compiling serde v1.0.164 Compiling futures-util v0.3.28 Compiling thiserror v1.0.40 Compiling mio v0.8.8 Compiling num-traits v0.2.15 Compiling crossbeam-utils v0.8.16 Compiling wasm-bindgen-macro-support v0.2.87 | Compiling ahash 0.7.6 (registry+https://github.com/rust-lang/crates.io-index) Compiling http v0.2.9 \ Compiling ahash 0.7.6 (registry+https://github.com/rust-lang/crates.io-index) / Compiling ahash 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)