Back to Wails

Page Not Found

v3/internal/assetserver/defaults/index.en.html

2.13.0973 B
Original Source

⚠️ Missing index.html file

No index.html file was found in the embedded assets. This page appears when the WebView window cannot find HTML content to display.

  • 1 If you are using the Assets option in your application, ensure you have an index.html file in your project's embedded assets directory. #View Example → //go:embed all:frontend/dist var assets embed.FS func main() { // ... app := application.New(application.Options{ // ... Assets: application.AssetOptions{ Handler: application.AssetFileServerFS(assets), }, }) // ... }

  • 2If the file doesn't exist but should, verify that your build process is configured to correctly include the HTML file in the embedded assets directory.

  • 3 An alternative solution is to use the HTML option in the WebviewWindow Options. #View Example → func main() { // ... app.NewWebviewWindowWithOptions(application.WebviewWindowOptions{ // ... HTML: "<h1>Hello World!<h1>", }) // ... }

Reload Page View Documentation