dioxus: failed to resolve: could not find `Config` in `dioxus_hot_reload` could not find `Config` in `dioxus_hot_reload`

Problem I am just getting started with Rust and Dioxus. I am trying to follow the “Hot reloading” steps in https://dioxuslabs.com/learn/0.4/getting_started/fullstack. This is my file:

#![allow(non_snake_case, unused)]
use dioxus::prelude::*;
use dioxus_fullstack::prelude::*;

fn main() {
    hot_reload_init!();
    LaunchBuilder::new(app).launch();
}

fn app(cx: Scope) -> Element {
    let mut count = use_state(cx, || 0);

    cx.render(rsx! {
        h1 { "High-Five counter: {count}" }
        button { onclick: move |_| count += 1, "Up high!" }
        button { onclick: move |_| count -= 1, "Down low!" }
    })
}

Steps To Reproduce

Steps to reproduce the behavior:

Expected behavior Server should listen on port 8080 and serve the app, with hot reloading

Screenshots image

Environment:

  • Dioxus version: [“0.4.0”]
  • Rust version: [1.73.0]
  • OS info: [Fedora]
  • App platform: [web]

Questionnaire

  • I’m interested in fixing this myself but don’t know where to start
  • I would like to fix and I have a solution
  • I don’t have time to fix this right now, but maybe later

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

I don’t get this error after reinstalling the CLI now.

Sorry it took me so long to get back to you. This should be fixed if you reinstall the CLI. The capitalization of cargo.lock was incorrect in the CLI. Linux has a capitalization sensitive file system which is why the bug was only showing up on Linux and not Mac/Windows.