wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
24.42k stars 1.17k forks source link

Examples from docs are all broken #3685

Open umurpza opened 3 weeks ago

umurpza commented 3 weeks ago

Description

The UI's for all of the examples in the following project that is referenced in the docs are broken. All I see is a flickering UI, and a lot of the following warnings in the console. I do not have the same issue in the project I created myself.

DEB | [AssetHandler] File 'src/style.css' not found, serving '/src/style.css' by AssetHandler

Docs link: https://wails.io/docs/tutorials/dogsapi/ Examples Link: https://github.com/tataDan/wails-v2-examples/tree/main

To Reproduce

  1. Download https://github.com/tataDan/wails-v2-examples/tree/main/examples/dogs-api
  2. Run wails dev
  3. Wait for the app to load and see the flickering, broken UI.

Expected behaviour

The UI should be usable.

Screenshots

No response

Attempted Fixes

No response

System Details

umurpza@V0Q4MD6 simple-grep % wails doctor

          Wails Doctor          

# Wails
Version | v2.9.1

# System
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | MacOS                                                                                                                                                                                                                             |
| Version      | 14.6.1                                                                                                                                                                                                                            |
| ID           | 23G93                                                                                                                                                                                                                             |
| Go Version   | go1.22.4                                                                                                                                                                                                                          |
| Platform     | darwin                                                                                                                                                                                                                            |
| Architecture | amd64                                                                                                                                                                                                                             |
| CPU          | Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz                                                                                                                                                                                         |
| GPU          | Chipset Model: Intel UHD Graphics 630 Type: GPU Bus: Built-In VRAM (Dynamic, Max): 1536 MB Vendor: Intel Device ID: 0x3e9b Revision ID: 0x0002 Automatic Graphics Switching: Supported gMux Version: 5.0.0 Metal Support: Metal 3 |
| Memory       | 32GB                                                                                                                                                                                                                              |
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────┐
| Dependency                | Package Name | Status    | Version |
| Xcode command line tools  | N/A          | Installed | 2408    |
| Nodejs                    | N/A          | Installed | 20.12.2 |
| npm                       | N/A          | Installed | 10.8.1  |
| *Xcode                    | N/A          | Available |         |
| *upx                      | N/A          | Available |         |
| *nsis                     | N/A          | Available |         |
└─────────────────── * - Optional Dependency ────────────────────┘

# Diagnosis
Optional package(s) installation details: 
  - Xcode: Available at https://apps.apple.com/us/app/xcode/id497799835
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

 SUCCESS  Your system is ready for Wails development!

 ♥   If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony
umurpza@V0Q4MD6 simple-grep %

Additional context

No response

leaanthony commented 3 weeks ago

I would suggest reporting it on the tutorial repo 👍

umurpza commented 3 weeks ago

Link to example repo issue: https://github.com/tataDan/wails-v2-examples/issues/3

leaanthony commented 3 weeks ago

I would suggest reporting it on the tutorial repo 👍