Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dioxus-cli install Error! #4670

Unanswered
callmeitachi asked this question in Q&A
Sep 18, 2025 · 2 comments · 2 replies
Discussion options

I'm using Windows, how can I resolve the following error?

 Compiling walkdir v2.5.0
error[E0432]: unresolved import `serde::__private`
 --> C:\Users\zhourb\.cargo\registry\src\rsproxy.cn-e3de039b2554c837\swc_common-5.0.0\src\private\mod.rs:3:9
 |
3 | pub use serde::__private as serde;
 | ^^^^^^^---------^^^^^^^^^
 | | |
 | | help: a similar name exists in the module: `private`
 | no `__private` in the root
 Compiling convert_case v0.6.0
 Compiling rand_core v0.5.1
 Compiling windows-sys v0.60.2
 Compiling bstr v1.12.0
For more information about this error, try `rustc --explain E0432`.
error: could not compile `swc_common` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `dioxus-cli v0.6.3`, intermediate artifacts can be found at `C:\Users\zhourb\AppData\Local\Temp\cargo-install7d8KB3`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
You must be logged in to vote

Replies: 2 comments 2 replies

Comment options

use cargo binstall dioxus-cli

You must be logged in to vote
0 replies
Comment options

cargo install dioxus-cli --locked should also fix the issue. See #4661 for more information

You must be logged in to vote
2 replies
Comment options

Still getting an error, I don’t know why it’s so strange. I once reinstalled Windows, and the first time I ran cargo install dioxus-cli, it downloaded successfully. But every time a new version of dioxus-cli is released, after I uninstall the previous version and try to reinstall it, the error keeps occurring.
dx_error

Comment options

@callmeitachi, when building with cmake from android studio I had a similar error. If you use an older cmake (I used 3.24), it passes this step. Although, still failing when compiling rav1e later due to another error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /