wailsapp / wails

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

[v3] Unembed some directory caused an abnormal frontend rendering #3851

Open northes opened 5 days ago

northes commented 5 days ago

Description

Unembed some directory caused an abnormal frontend rendering

To Reproduce

  1. wails3 init -n xxx -t sveltekit
  2. task build
  3. task run

Expected behaviour

application should run normally

Screenshots

Unable to find files

1:03PM INF [AssetFileServerFS] Handling request url=/ file=.
1:03PM INF Asset Request: windowName="" windowID=2 code=200 method=GET path=/ duration=276.959µs
1:03PM INF [AssetFileServerFS] Handling request url=/_app/immutable/chunks/index.CoaCY2RK.js file=_app/immutable/chunks/index.CoaCY2RK.js
1:03PM INF [AssetFileServerFS] Handling request url=/_app/immutable/chunks/scheduler.Ce_0Mfso.js file=_app/immutable/chunks/scheduler.Ce_0Mfso.js
1:03PM INF Asset Request: windowName="" windowID=2 code=404 method=GET path=/_app/immutable/chunks/scheduler.Ce_0Mfso.js duration=100.541µs
1:03PM INF [AssetFileServerFS] Handling request url=/_app/immutable/chunks/index.M7WuUczP.js file=_app/immutable/chunks/index.M7WuUczP.js
1:03PM INF Asset Request: windowName="" windowID=2 code=404 method=GET path=/_app/immutable/chunks/index.CoaCY2RK.js duration=155.916µs
1:03PM INF [AssetFileServerFS] Handling request url=/_app/immutable/entry/start.DrgHeUN_.js file=_app/immutable/entry/start.DrgHeUN_.js
1:03PM INF [AssetFileServerFS] Handling request url=/_app/immutable/entry/app.ConOY-rC.js file=_app/immutable/entry/app.ConOY-rC.js
1:03PM INF [AssetFileServerFS] Handling request url=/_app/immutable/chunks/entry.DJH2JQCn.js file=_app/immutable/chunks/entry.DJH2JQCn.js
1:03PM INF Asset Request: windowName="" windowID=2 code=404 method=GET path=/_app/immutable/chunks/index.M7WuUczP.js duration=92.333µs
1:03PM INF Asset Request: windowName="" windowID=2 code=404 method=GET path=/_app/immutable/entry/start.DrgHeUN_.js duration=106.791µs
1:03PM INF Asset Request: windowName="" windowID=2 code=404 method=GET path=/_app/immutable/entry/app.ConOY-rC.js duration=100.042µs
1:03PM INF Asset Request: windowName="" windowID=2 code=404 method=GET path=/_app/immutable/chunks/entry.DJH2JQCn.js duration=60.208µs

Attempted Fixes

No response

System Details

# System
┌──────────────────────────────┐
| Name          | MacOS        |
| Version       | 14.5         |
| ID            | 23F79        |
| Branding      | Sonoma       |
| Platform      | darwin       |
| Architecture  | arm64        |
| Apple Silicon | true         |
| CPU           | Apple M1 Pro |
| CPU           | Unknown      |
| GPU           | Unknown      |
| Memory        | Unknown      |
└──────────────────────────────┘

# Build Environment
┌───────────────────────────────┐
| Wails CLI    | v3.0.0-alpha.7 |
| Go Version   | go1.22.4       |
| -buildmode   | exe            |
| -compiler    | gc             |
| CGO_CFLAGS   |                |
| CGO_CPPFLAGS |                |
| CGO_CXXFLAGS |                |
| CGO_ENABLED  | 1              |
| CGO_LDFLAGS  |                |
| GOARCH       | arm64          |
| GOOS         | darwin         |
└───────────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────────────┐
| Xcode cli tools | 2408                                                 |
| npm             | 10.8.2                                               |
| *NSIS           | Not Installed. Install with `brew install makensis`. |
└─────────────────────── * - Optional Dependency ────────────────────────┘

Additional context

No response

northes commented 5 days ago

Solution: use //go:embed frontend/dist/*, maybe should update templates