Repository: DioxusLabs/dioxus

Issue #3391: new v0.6.1 app: failed to select a version for the requirement `dioxus-liveview = "^0.6.1"
Created: 2024-12-18T13:39:39Z
Problem
A new created dioxus v0.6.1 fullstack app can not find the needed version for dioxus-liveview.
Steps To Reproduce
❯ dx --version
dioxus 0.6.1 (was built without git repository)
❯ dx new engine-test4
✔ 🤷   Which sub-template should be expanded? · Bare-Bones
✔ 🤷   Do you want to use Dioxus Fullstack? · true
✔ 🤷   Do you want to use Dioxus Router? · false
✔ 🤷   Do you want to use Tailwind CSS? · false
✔ 🤷   Which platform do you want DX to serve by default? · Web
  11.262s  INFO Generated project at /home/lukas/git/engine-test4

`cd` to your project and run `dx serve` to start developing.
If using Tailwind, make sure to run the Tailwind CLI.
More information is available in the generated `README.md`.

Build cool things! ✌️


❯ cd engine-test4/

❯ dx serve --platform web
14:23:23 [dev] -----------------------------------------------------------------
                Serving your Dioxus app: engine-test4 🚀
                • Press `ctrl+c` to exit the server
                • Press `r` to rebuild the app
                • Press `o` to open the app
                • Press `v` to toggle verbose logging
                • Press `/` for more commands and shortcuts
                Learn more at https://dioxuslabs.com/learn/0.6/getting_started
               ----------------------------------------------------------------
14:23:23 [dev] Installing wasm-bindgen-cli@0.2.99...
14:23:24 [dev] wasm-bindgen-cli@0.2.99 was successfully installed from GitHub.
14:23:25 [cargo] error: failed to select a version for the requirement `dioxus-liveview = "^0.6.1"`
14:23:25 [cargo] candidate versions found which didn't match: 0.6.0, 0.6.0-rc.0, 0.6.0-alpha.5, ...
14:23:25 [cargo] location searched: crates.io index
14:23:25 [cargo] required by package `dioxus v0.6.1`
14:23:25 [cargo]     ... which satisfies dependency `dioxus = "^0.6.0"` (locked to 0.6.1) of package `engine-test4 v0.1.0 (/home/lukas/git/engine-test4)`
14:23:25 [cargo] if you are looking for the prerelease package it needs to be specified explicitly
14:23:25 [cargo]     dioxus-liveview = { version = "0.6.0-rc.0" }
14:23:25 [dev] Cargo build failed - no output location. Toggle tracing mode (press `t`) for more information.
14:23:25 [dev] Build failed: Other(Build did not return an executable)
╭────────────────────────────────────────────────────────────────────────────────────────── /:more ╮
│  App:     ━━━━━━━━━━━━━━━━━━━━━━━━━━  ❌           Platform: Web + fullstack                     │
│  Server:  ━━━━━━━━━━━━━━━━━━━━━━━━━━  ❌           App features: ["web"]                         │
│  Status:  Failed                                   Serving at: http://127.0.0.1:8080             │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯


✘ dx serve --platform web --verbose
14:26:40 [dev] Loading crate
14:26:40 [dev] Found package NodeIndex(46)
14:26:40 [dev] Could not find explicit feature for platform server, passing `fallback` instead
14:26:40 [dev] Verifying tooling...
14:26:40 [dev] Watching path "/home/lukas/git/engine-test4/Cargo.toml"
14:26:40 [dev] Watching path "/home/lukas/git/engine-test4/Dioxus.toml"
14:26:40 [dev] Watching path "/home/lukas/git/engine-test4/README.md"
14:26:40 [dev] Watching path "/home/lukas/git/engine-test4/assets"
14:26:40 [dev] Watching path "/home/lukas/git/engine-test4/src"
14:26:40 [dev] Watching path "/home/lukas/git/engine-test4"
14:26:40 [dev] -----------------------------------------------------------------
                Serving your Dioxus app: engine-test4 🚀
                • Press `ctrl+c` to exit the server
                • Press `r` to rebuild the app
                • Press `o` to open the app
                • Press `v` to toggle verbose logging
                • Press `/` for more commands and shortcuts
                Learn more at https://dioxuslabs.com/learn/0.6/getting_started
               ----------------------------------------------------------------
14:26:40 [dev] Running build command...
14:26:40 [dev] Building app...
14:26:40 [dev] Initialized Root dir: "/home/lukas/git/engine-test4/target/dx/engine-test4/debug/web/public"
14:26:40 [dev] Initialized Exe dir: "/home/lukas/git/engine-test4/target/dx/engine-test4/debug/web/public/wasm"
14:26:40 [dev] Initialized Asset dir: "/home/lukas/git/engine-test4/target/dx/engine-test4/debug/web/public/assets"
14:26:40 [dev] Executing cargo...
14:26:40 [dev] cargo args: ["--profile", "wasm-dev", "--target", "wasm32-unknown-unknown", "--verbose", "--features", "web", "--bin", "engine-test4"]
14:26:40 [dev] Building server...
14:26:40 [dev] Building app...
14:26:40 [dev] Executing cargo...
14:26:40 [dev] cargo args: ["--profile", "server-dev", "--verbose", "--features", "dioxus/server", "--bin", "engine-test4"]
14:26:41 [dev] cargo args: ["--profile", "wasm-dev", "--target", "wasm32-unknown-unknown", "--verbose", "--features", "web", "--bin", "engine-test4"]
14:26:41 [dev] cargo args: ["--profile", "server-dev", "--verbose", "--features", "dioxus/server", "--bin", "engine-test4"]
14:26:41 [cargo] error: failed to select a version for the requirement `dioxus-liveview = "^0.6.1"`
14:26:41 [cargo] candidate versions found which didn't match: 0.6.0, 0.6.0-rc.0, 0.6.0-alpha.5, ...
14:26:41 [cargo] location searched: crates.io index
14:26:41 [cargo] required by package `dioxus v0.6.1`
14:26:41 [cargo]     ... which satisfies dependency `dioxus = "^0.6.0"` (locked to 0.6.1) of package `engine-test4 v0.1.0 (/home/lukas/git/engine-test4)`
14:26:41 [cargo] if you are looking for the prerelease package it needs to be specified explicitly
14:26:41 [cargo]     dioxus-liveview = { version = "0.6.0-rc.0" }
14:26:41 [dev] Cargo build failed - no output location. Toggle tracing mode (press `t`) for more information.
14:26:41 [dev] Setting builder to failed state
14:26:41 [dev] Build failed: Other(Build did not return an executable)
╭────────────────────────────────────────────────────────────────────────────────────────── /:more ╮
│  App:     ━━━━━━━━━━━━━━━━━━━━━━━━━━  ❌           Platform: Web + fullstack                     │
│  Server:  ━━━━━━━━━━━━━━━━━━━━━━━━━━  ❌           App features: ["web"]                         │
│  Status:  Failed                                   Serving at: http://127.0.0.1:8080             │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

Expected behavior

Screenshots

Environment:

Dioxus version:   v0.6.1
Rust version:   rustc 1.83.0 (90b35a623 2024-11-26)
OS info:         arch linux
App platform:    fullstack

Questionnaire

Duplicate issue #3704: default dx new fullstack fails to compile
Created: 2025-02-05T23:56:28Z
dx cli generates broken fullstack project
dioxus 0.6.2 (was built without git repository)
rustc 1.83.0 (90b35a623 2024-11-26)
cargo 1.83.0 (5ffbef321 2024-10-29)

[dev] -----------------------------------------------------------------
                Serving your Dioxus app: dx_mail
                • Press `ctrl+c` to exit the server
                • Press `r` to rebuild the app
                • Press `p` to toggle automatic rebuilds
                • Press `v` to toggle verbose logging
                • Press `/` for more commands and shortcuts
                Learn more at https://dioxuslabs.com/learn/0.6/getting_started
               ----------------------------------------------------------------
00:50:31 [cargo] error: failed to select a version for the requirement `dioxus-ssr = "^0.6.2"`
00:50:31 [cargo] candidate versions found which didn't match: 0.6.1, 0.6.0, 0.6.0-rc.0, ...
00:50:31 [cargo] location searched: crates.io index
00:50:31 [cargo] required by package `dioxus v0.6.2`
00:50:31 [cargo]     ... which satisfies dependency `dioxus = "^0.6.0"` (locked to 0.6.2) of package )`
00:50:31 [cargo] if you are looking for the prerelease package it needs to be specified explicitly
00:50:31 [cargo]     dioxus-ssr = { version = "0.6.0-rc.0" }
00:50:31 [dev] Cargo build failed - no output location. Toggle tracing mode (press `t`) for more information.
00:50:31 [dev] Build failed: Other(Build did not return an executable)

Closing comment (2025-02-06T23:24:48Z): This issue looks similar to #3391. I can't reproduce it with the 0.6.2 version of the CLI on macos.

That issue was a bug with cargo. Clearing your cargo registry at ~/.cargo/registry may fix the issue