wailsapp / wails

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

Blank webview after init and build #311

Closed ThomasSzabo closed 4 years ago

ThomasSzabo commented 4 years ago

Description

I runwails init and create a new project using the React template. Then I cd into the new project folder and run wails build -d. After the build completes, I am simply calling the binary, which opens the app's view that shows a blank screen. A right click only shows "reload". I am on a Mac OS 10.14.5. The app works fine when I run wails serve and npm run start on the frontend... the browser shows everything perfectly.

To Reproduce Steps to reproduce the behaviour:

  1. Create a new wails project using wails init
  2. Select the React template
  3. Once wails is done creating the project, change directory into the project's folder
  4. run wails build -d

Expected behaviour I expect to see the HTML page in the app's view.

Screenshots The log of wails init process

Screen Shot 2019-12-27 at 8 49 11 PM Screen Shot 2019-12-27 at 8 50 55 PM

System Details

Name Value
Wails Version v1.0.1
Go Version go1.13
Platform darwin
Arch amd64
GO111MODULE on
GCC 4.2.1
Npm 6.4.1
Node v10.15.3

Additional context Add any other context about the problem here.

leaanthony commented 4 years ago

Hmm... interesting. It must be something to do with the OSX version. I'll look at it over the next couple of days.

leaanthony commented 4 years ago

Do you get any output on the console? If not, please compile using wails build -d and run with: hello -loglevel debug

macdaddyaz commented 4 years ago

I'm seeing what could be the same issue. Fresh project with the Vue 2 template is only displaying a blank window. Never mind, sorry, I was using the wrong build command. 🙄

sysreport commented 4 years ago

Hi

This is not only on MacOSX. I have a Linux Mint 19 with the same behavior. I am on a new folder without any files and will create a new Project. I make a wails init with and without the -name parameter and become a blank webview window. As well if i type wails build -d in a blank folder. I can not create a new wails project with the init command

I can not use any wails commands. As well if i type wails setup or only i type wails or i type wails --help. Every command give me no output in the console, and a blank webview windows

regards thoralf

sysreport commented 4 years ago

I'm so sorry. The problem was a mistake from me. I have create and build a project named wails and its override the binary in my $G_BIN path. I have deleted this binary and now it works for me.

tmclane commented 4 years ago

I can't duplicate this issue with the React UI when running Mojave 10.14.4:

Software Version
Node v12.14.1
npm 6.13.4
go 1.13.5
gcc Apple 10.0.1 (clang-1001.0.46.4) - 4.2.1
Wails 1.0.2-pre3

Unfortunately I cannot update OS X past this because of space issues on the box. I would recommend trying a newer version of Wails and seeing if the issue goes away along with updating the other dependencies as well.

I just tested Wails 1.0.1 (released version) as well on the same environment and it works perfectly. You get a window with a spinning Wails logo and a button that shows a dialog with the basic() message from the main.go.

leaanthony commented 4 years ago

Any updates @ThomasSzabo ?

ThomasSzabo commented 4 years ago

Sorry @leaanthony I moved on testing zserge's webview directly.

leaanthony commented 4 years ago

Cool. I'll close this.

cafe4it commented 3 years ago

same problem on macos 10.13.6

leaanthony commented 3 years ago

This issue is a year old. Please open a new ticket if you have an issue