wailsapp / wails

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

index.html not found Please try reloading the page #2661

Closed learncodingforweb closed 1 year ago

learncodingforweb commented 1 year ago

Description

unable to see index.html content while running wails app in development mode

To Reproduce

1) wails init -n myproject -t react-ts 2) wails dev

Expected behaviour

wails dev should show page index.html page content

Screenshots

Screenshot from 2023-05-14 21-37-50

Attempted Fixes

install wails app under ubuntu 20.04 using go install github.com/wailsapp/wails/v2/cmd/wails@latest

System Details

wails doctor

Wails CLI v2.5.0

 SUCCESS  Done.                                                                                                                               

# System

OS           | Ubuntu  
Version      | 22.04   
ID           | ubuntu  
Go Version   | go1.20.4
Platform     | linux   
Architecture | amd64   

# Wails

Version         | v2.5.0
Package Manager | apt   

# Dependencies

Dependency | Package Name          | Status    | Version                
*docker    | docker.io             | Installed | 23.0.6                 
gcc        | build-essential       | Installed | 12.9ubuntu3            
libgtk-3   | libgtk-3-dev          | Installed | 3.24.33-1ubuntu2       
libwebkit  | libwebkit2gtk-4.0-dev | Installed | 2.38.6-0ubuntu0.22.04.1
npm        | npm                   | Installed | 9.5.0                  
*nsis      | nsis                  | Installed | v3.08-2                
pkg-config | pkg-config            | Installed | 0.29.2                 
* - Optional Dependency

# Diagnosis

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


### Additional context

it is bug, i have not written any code, even ``wails init -n myproject -t react`` is not working
stffabi commented 1 year ago

Thanks for using Wails and reporting this.

This is currently a known issue with '2.5.0' on linux.

In the meantime you could use the build tag ‘webkit2_36’ to workaround it: ‘wails dev -tags webkit2_36’

stffabi commented 1 year ago

PR #2664 is up with a fix for this.