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

Fail to Read dist/__assets_head.html #2231

Closed
1 of 3 tasks
photino opened this issue Apr 3, 2024 · 1 comment · Fixed by #2251
Closed
1 of 3 tasks

Fail to Read dist/__assets_head.html #2231

photino opened this issue Apr 3, 2024 · 1 comment · Fixed by #2251

Comments

@photino
Copy link
Contributor

photino commented Apr 3, 2024

Problem

We have upgraded to Dioxus 0.5 in our application framework Zino. The dioxus-desktop example outputs the following error:

ERROR dioxus_desktop::protocol: Failed to read "D:\\code\\git\\github\\zino\\examples\\dioxus-desktop\\dist\\__assets_head.html"

It is somewhat annoying. How can we fix it if the file does not exists?

Steps To Reproduce

Steps to reproduce the behavior:

  • git clone https://github.com/zino-rs/zino.git
  • cd examples/dioxus-desktop
  • cargo run

Expected behavior

No errors.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment:

  • Dioxus version: 0.5
  • Rust version: 1.77
  • OS info: Windows
  • App platform: desktop

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
@ealmloff
Copy link
Member

ealmloff commented Apr 3, 2024

That error will go away if you build your application with the dioxus cli with dx serve. Without the head file, manganis assets will not be preloaded and css files will not be injected into the head. If you are interested in fixing this issue, you can downgrade this error to a warning about assets not being preloaded if the application is not built with the dioxus cli

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

Successfully merging a pull request may close this issue.

2 participants