wails: Error when either running `wails serve` or running executable generated by `wails build`

Description

An error message pops up when I try to run the executable generated by wails build.

Dismissing this message by either pressing “yes” or “no” closes the error window and the normal window is just a blank white box.

In a similar vein, running wails serve gives an error - https://pastebin.com/4JBWNeDY. Unfortunately the output is not too helpful.

To Reproduce

Steps to reproduce the behaviour:

  1. Create a new project using wails init
    • This was tested with both React and Vue project templates
  2. cd to the project directory and run wails build
  3. Run the projectname.exe file
  4. See error

OR

  1. Create a new project using wails init
  2. cd to the project directory
  3. Run wails serve and the stop it
  4. Interestingly enough, the first time wails serve is run it works fine. It’s only the second time and onward that it breaks, so run wails serve again
  5. See error

Expected behaviour

The app opens and displays the default wails project page.

Screenshots

wails build:

Error: https://i.imgur.com/kp1Ff9T.png

After error closed: https://i.imgur.com/Bxj0G4N.png

wails serve:

https://pastebin.com/4JBWNeDY

System Details

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

Additional context

This is basically 2 issues in one but I think they are possibly related?

Also just as a side note I have switched over to tdm-gcc and this still happens.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

Still failed for me

On Wails v0.19.0-pre2 - Building Application image

Didn’t update or regenerate go.mod

I’m on v0.18.13-pre and it says that’s the latest prerelease?