DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.33k stars 736 forks source link

Desktop quickstart demo cannot show in macos #2208

Closed qqke closed 2 months ago

qqke commented 3 months ago

Can not show any elements on my macos wih dioxus@0.5

ealmloff commented 3 months ago

Following the getting started guide on macOS results in this application on my M2 mac with the 0.5.0 version of both dioxus and the dioxus cli. I choose default CSS styling, no router, and the desktop platform: Screenshot 2024-04-01 at 8 26 41 AM

Can you provide more details about your setup: 1) What options did you select in the dx new TUI 2) What version of rust, the dioxus CLI and dioxus did you use? 3) Do you see any errors in your terminal or browser console? You can access the browser console by right clicking and clicking inspect element which should show you a screen like this: Screenshot 2024-04-01 at 8 29 22 AM

qqke commented 2 months ago

1.dx new desktop with tailwindcss 2.dx cli 0.5.0 3.show error like this 截屏2024-04-04 21 41 38

ealmloff commented 2 months ago

I cannot reproduce it with that setup on macOS with the 0.5.0 version of the CLI. It might be an error that is specific to the version or your webview. If you are interested in debugging this issue, more information about the syntax error in your console would be useful. We might be compiling to a newer version of javascript for the interpreter than what your browser supports

qqke commented 2 months ago

It is possible that my outdated macOS Catalina 10.15.7 installation was causing the issue. After switching to Windows 11, the problem no longer occurs.