Open northes opened 5 days ago
Unembed some directory caused an abnormal frontend rendering
wails3 init -n xxx -t sveltekit
task build
task run
application should run normally
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
No response
# 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 ────────────────────────┘
Solution: use //go:embed frontend/dist/*, maybe should update templates
//go:embed frontend/dist/*
Description
Unembed some directory caused an abnormal frontend rendering
To Reproduce
wails3 init -n xxx -t sveltekit
task build
task run
Expected behaviour
application should run normally
Screenshots
Unable to find files
Attempted Fixes
No response
System Details
Additional context
No response