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

Failed to build data folders and files #3172

Open
markcda opened this issue Nov 4, 2024 · 0 comments
Open

Failed to build data folders and files #3172

markcda opened this issue Nov 4, 2024 · 0 comments

Comments

@markcda
Copy link

markcda commented Nov 4, 2024

Problem

Failed to bundle the project for web template.

Successfully built! 💫
Bundle at /home/username/project/target/dx/project/release/web/public
thread 'main' panicked at /home/username/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dioxus-cli-0.6.0-alpha.4/src/cli/bundle.rs:129:13:
Failed to bundle project: BundlerError(
    Error {
        context: "Failed to build data folders and files",
        source: BundlerError(
            Error {
                context: "Failed to copy binary from \"/home/username/project/target/dx/project/bundle/web/project\"",
                source: GenericError(
                    "\"/home/username/project/bundle/web/project\" does not exist",
                ),
            },
        ),
    },
)
stack backtrace:
   0:     0x5a6298e804da - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h18c4c1dd9b88fff1
   1:     0x5a6298eb2e43 - core::fmt::write::h87839ba024af275c
   2:     0x5a6298e79c73 - std::io::Write::write_fmt::hffa822a950387e85
   3:     0x5a6298e80322 - std::sys::backtrace::BacktraceLock::print::haf1154d2691aa82f
   4:     0x5a6298e81fea - std::panicking::default_hook::{{closure}}::h42dc96b50261660f
   5:     0x5a6298e81e30 - std::panicking::default_hook::h47ade7229cb2bd7b
   6:     0x5a6298e82617 - std::panicking::rust_panic_with_hook::h4cedce6791141a22
   7:     0x5a6298e824aa - std::panicking::begin_panic_handler::{{closure}}::h555e3639c58e84e9
   8:     0x5a6298e809b9 - std::sys::backtrace::__rust_end_short_backtrace::h673c62504f274002
   9:     0x5a6298e8213c - rust_begin_unwind
  10:     0x5a6298eaf6e0 - core::panicking::panic_fmt::h76afdbf7538ec80f
  11:     0x5a62979745e7 - dx::cli::bundle::Bundle::bundle::{{closure}}::ha7dca7349262c8a3
  12:     0x5a6297985e5f - dx::main::{{closure}}::hd96453d9d0e36b23
  13:     0x5a629794f7bb - dx::main::he54e3bb8630492d2
  14:     0x5a6297750333 - std::sys::backtrace::__rust_begin_short_backtrace::h5593cc1d3bafdf28
  15:     0x5a62979f845d - std::rt::lang_start::{{closure}}::h8233e8949b7e53c1
  16:     0x5a6298e6f127 - std::rt::lang_start_internal::hc022db92cc176cc5
  17:     0x5a6297950955 - main
  18:     0x7cdfd0434e08 - <unknown>
  19:     0x7cdfd0434ecc - __libc_start_main
  20:     0x5a62976e6725 - _start
  21:                0x0 - <unknown>

Steps To Reproduce

Steps to reproduce the behavior:

  • create new project with dx new for Web
  • compile it with dx build
  • bundle it with dx bundle --release

Expected behavior

I see that the binary it looking for is in /home/username/project/target/dx/project/release/web/project, and there is no /home/username/project/target/dx/project/bundle folder at all.

Environment:

  • Dioxus version: 0.6.0-alpha.4
  • Dioxus cli version: 0.6.0-alpha.4
  • Rust version: 1.84.0 (b8c8287a2 2024-11-03)
  • OS info: Linux (Arch Linux)
  • App platform: web

Questionnaire

I'm interested in fixing this myself but don't know where to start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant