DioxusLabs / DioxusLabs/dioxus

Optional fullstack feature is not activated when passing the `--fullstack` flag

Open
#4,756 0 comments 0 reactions 0 assignees View on GitHub
bug cli
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

If your package is set up with a feature to enable `dioxus/fullstack` the new version of dx doesn't enable that feature even if you pass the `--fullstack` flag

**Steps To Reproduce**

Steps to reproduce the behavior:

- clone this repo: https://github.com/ealmloff/dx-optional-fullstack with this feature setup:
```toml
[dependencies]
dioxus = { version = "0.7.0-rc.1", features = ["router"] }

[features]
default = ["web"]
web = ["dioxus/web"]
fullstack = ["dioxus/fullstack"]
server = ["dioxus/server"]
```

- run `dx serve --fullstack`
- observe the fullstack feature is not enabled and hydration fails because the client wasn't built with hydraiton enabled

**Environment:**

- Dioxus version: 0.7.0-rc.1
- Rust version: nightly
- OS info: macOS
- App platform: web + fullstack

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.