⚠️
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.
-
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), }, }) // ... } - If 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.
-
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>", }) // ... }