DioxusLabs / DioxusLabs/dioxus
Bundling SSG is broken
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
**Steps To Reproduce**
Hi I'm trying to migrate my portfolio template from 0.6 to 0.7. I followed instructions here https://dioxuslabs.com/learn/0.7/essentials/fullstack/static_site_generation and it worked before in dx 0.6. You mentioned in the documentation that non-deterministic code will cause some errors, but my code does not have any random components.
Steps:
1. Clone the repo with `dx0.7` branch https://github.com/ifsheldon/hack-portfolio/tree/dx0.7
2. Run `dx bundle --web --ssg --release` (I added `--release` since otherwise it will generate debug artifacts)
3. Serve the public folder with `dufs`: `cd target/dx/hack-portfolio/release/web/public/ && dufs -A --port 80`
4. When open `index.html`, get a blank page and errors like below in the console
**Expected behavior**
A working website
**Screenshots**
**Environment:**
- Dioxus version: `0.7.1`
- Rust version: `1.91.1`
- OS info: macOS 26.1
- App platform: fullstack
**Questionnaire**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.