-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Dioxus-cli install Error! #4670
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 2 replies
-
use cargo binstall dioxus-cli
Beta Was this translation helpful? Give feedback.
All reactions
-
cargo install dioxus-cli --locked
should also fix the issue. See #4661 for more information
Beta Was this translation helpful? Give feedback.
All reactions
-
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
Beta Was this translation helpful? Give feedback.
All reactions
-
@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.
Beta Was this translation helpful? Give feedback.