Wails: app does not run in browser (chrome/firefox) on windows 10 - black screen

Created on 10 Oct 2019  ·  8Comments  ·  Source: wailsapp/wails

Description

black screen
when I inspect, I can see "Uncaught TypeError: Cannot read property '_' of undefined"

To Reproduce
Steps to reproduce the behaviour:

  1. Go to http://localhost:8080/
  2. Black Screen : inspect with chrome
  3. See error : Uncaught TypeError: Cannot read property '_' of undefined

Expected behaviour
Screen wails logo & press me button

Screenshots
If applicable, add screenshots to help explain your problem.

System Details
Windows 10
fresh install from github, program .exe is built and running, but nothing when "npm run serve" when I check at the url displayed

| Name | Value |
| ----- | ----- |
| Wails Version | v0.18.3 |
| Go Version | go1.13.1 |
| Platform | windows |
| Arch | amd64 |
| GO111MODULE | (Not Set) |
| GCC | 8.1.0 |
| Npm | v10.16.3
|
| Node | 6.9.0 |

Additional context
N/A

bug

Most helpful comment

Yeah, that did it for me. Thanks @leaanthony !

All 8 comments

This seems to affect all templates apart from React... (On Linux)

Ok, this seems ok on mac... which is odd as the code base for serve is not platform dependent... Still investigating. Here is a test matrix. It would be great if you could give feedback on the windows combinations!

| OS | Template | Working? |
| ----- | ----- | ----- |
| Mac | Vue | ✅|
| Mac | Vuetify | ✅|
| Mac | Angular | ✅|
| Mac | React | ✅|
| Linux | Vue | ✅|
| Linux | Vuetify | ✅|
| Linux | Angular | ✅|
| Linux | React | ✅|
| Windows | Vue | ❌|
| Windows | Vuetify | |
| Windows | Angular | |
| Windows | React | |

Absolutely no idea about Angular / React and I don't need Vuetify, sorry
So on Windows/Vue : it does not run
maybe other people could help to check

Updated table after doing more testing on Linux.

I have the same problem on Ubuntu 18.04 using Vue. This started occurring after the 0.18 update. Building and running it using GTK works fine. Chrome reports the same as stated by OP. FF reports "TypeError: window.wails is undefined"

Please try v0.19.0-pre2 and let me know. It assumes you will generate a new
project or update your version in go.mod

On Tue, 5 Nov 2019, 04:55 grvlle, notifications@github.com wrote:

I have the same problem on Ubuntu 18.04 using Vue. This started occurring
after the 0.18 update. Building and running it using GTK works fine. Chrome
reports the same as stated by OP. FF reports "TypeError: window.wails is
undefined"


You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/wailsapp/wails/issues/256?email_source=notifications&email_token=AAO2SYECI3OU6CZCX35LMHLQSBOZPA5CNFSM4I7HVS4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDAEPJY#issuecomment-549472167,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAO2SYDMTICG3CJY6HIWE43QSBOZPANCNFSM4I7HVS4A
.

Yeah, that did it for me. Thanks @leaanthony !

seems ok, thanks !

Was this page helpful?
0 / 5 - 0 ratings