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

[linux :: arm64] blank page when using dx serve #3502

Open
anibal-aguila opened this issue Jan 6, 2025 · 0 comments
Open

[linux :: arm64] blank page when using dx serve #3502

anibal-aguila opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working cli Related to the dioxus-cli program
Milestone

Comments

@anibal-aguila
Copy link

anibal-aguila commented Jan 6, 2025

Hi, I'm trying to run a web serve but don't get any content, thanks in advance.

Problem: blank page when using dx serve

(index):15 A preload for 'http://0.0.0.0:9003/wasm/demo-web.js' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
(anonymous) @ (index):15
demo-web.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.
0.0.0.0/:1 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: http://0.0.0.0:9003/wasm/demo-web.js
0.0.0.0/:1 The resource http://0.0.0.0:9003/wasm/demo-web_bg.wasm was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
0.0.0.0/:1 The resource http://0.0.0.0:9003/wasm/demo-web.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

Steps To Reproduce

Steps to reproduce the behavior:

❯ dx new --name demo-web ./demo-web-app

✔ 🤷   Which sub-template should be expanded? · Bare-Bones
✔ 🤷   Do you want to use Dioxus Fullstack? · false
✔ 🤷   Do you want to use Dioxus Router? · false
✔ 🤷   Do you want to use Tailwind CSS? · false
✔ 🤷   Which platform do you want DX to serve by default? · Web
  50.28s  INFO Generated project at demo-web-app

`cd` to your project and run `dx serve` to start developing.
If using Tailwind, make sure to run the Tailwind CLI.
More information is available in the generated `README.md`.

Build cool things! ✌️

❯ cd demo-web-app
❯ dx serve --addr 0.0.0.0 --port 9003
15:02:28 [dev] -----------------------------------------------------------------
                Serving your Dioxus app: demo-web 🚀
                • Press `ctrl+c` to exit the server
                • Press `r` to rebuild the app
                • Press `o` to open the app
                • Press `v` to toggle verbose logging
                • Press `/` for more commands and shortcuts
                Learn more at https://dioxuslabs.com/learn/0.6/getting_started
               ----------------------------------------------------------------
15:03:06 [dev] Build completed successfully in 37793ms, launching app! 💫
╭────────────────────────────────────────────────────────────────────────────────────────── /:more ╮
│  App:     ━━━━━━━━━━━━━━━━━━━━━━━━━━  🎉 37.8s     Platform: Web                                 │
│  Bundle:  ━━━━━━━━━━━━━━━━━━━━━━━━━━  🎉 0.0s      App features: ["web"]                         │
│  Status:  Serving demo-web 🚀 37.9s                Serving at: http://0.0.0.0:9003               │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯



Expected behavior

load the demo data in the browser with Bare-Bones or Jumpstart sub-template

Screenshots

image

Environment:

  • Dioxus version:
❯ dx --version
dioxus 0.6.1 (was built without git repository)
  • Rust version:
❯ rustup --version
rustup 1.27.1 (1980-01-01)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.83.0 (90b35a623 2024-11-26)`
  • OS info: Linux
❯ hostnamectl
        Kernel: Linux 6.6.66
        Architecture: arm64
  • App platform: web
@jkelleyrtp jkelleyrtp added bug Something isn't working cli Related to the dioxus-cli program labels Jan 7, 2025
@jkelleyrtp jkelleyrtp added this to the 0.6.2 milestone Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the dioxus-cli program
Projects
None yet
Development

No branches or pull requests

2 participants