Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying the platform to dx bundle breaks the fullstack build #3491

Open
matous-volf opened this issue Jan 3, 2025 · 0 comments
Open

Specifying the platform to dx bundle breaks the fullstack build #3491

matous-volf opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working cli Related to the dioxus-cli program
Milestone

Comments

@matous-volf
Copy link

Problem

Running

dx bundle

works fine. However, running

dx bundle --platform web

raises build errors regarding the client-only dependencies, e.g.

error[E0433]: failed to resolve: use of undeclared crate or module `dioxus_query`
 --> src/query/projects.rs:4:5
  |
4 | use dioxus_query::prelude::{use_get_query, QueryResult, UseQuery};
  |     ^^^^^^^^^^^^ use of undeclared crate or module `dioxus_query`

Steps To Reproduce

Steps to reproduce the behavior:

Expected behavior

If I understand correctly, the default feature in Cargo.toml is the one being built when no platform is specified to the dx bundle. The two commands above should then produce the same result, since the default feature is set to ["web"].

Environment:

  • Dioxus version: 0.6.1
  • Rust version: 1.83.0
  • OS info: the rust:1.83.0-bookworm Docker image
  • App platform: web (fullstack)
@jkelleyrtp jkelleyrtp added the bug Something isn't working label Jan 7, 2025
@jkelleyrtp jkelleyrtp added this to the 0.6.2 milestone Jan 7, 2025
@jkelleyrtp jkelleyrtp added the cli Related to the dioxus-cli program label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the dioxus-cli program
Projects
None yet
Development

No branches or pull requests

2 participants