wailsapp / wails

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

The start app can't run when i run the `wails dev` #3113

Open SimFG opened 9 months ago

SimFG commented 9 months ago

Description

The start app can't run when i run the wails dev. reference doc: https://wails.io/docs/gettingstarted/firstproject If i use the wails build, the app can be used well.

To Reproduce

  1. wails init -n simfg-wail -t lit-ts
  2. wails dev

Expected behaviour

there is no error when i run the wails dev

Screenshots

image

Attempted Fixes

No response

System Details

# Wails
Version | v2.7.1

# System
┌─────────────────────────┐
| OS           | MacOS    |
| Version      | 13.0.1   |
| ID           | 22A400   |
| Go Version   | go1.19.3 |
| Platform     | darwin   |
| Architecture | amd64    |
| CPU          | Unknown  |
| GPU          | Unknown  |
| Memory       | Unknown  |
└─────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────┐
| Dependency                | Package Name | Status    | Version |
| Xcode command line tools  | N/A          | Installed | 2396    |
| Nodejs                    | N/A          | Installed | 20.5.0  |
| npm                       | N/A          | Installed | 10.2.3  |
| *Xcode                    | N/A          | Available |         |
| *upx                      | N/A          | Available |         |
| *nsis                     | N/A          | Available |         |
└─────────────────── * - Optional Dependency ────────────────────┘

# Diagnosis
Optional package(s) installation details:
  - Xcode: Available at https://apps.apple.com/us/app/xcode/id497799835
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

 SUCCESS  Your system is ready for Wails development!

Additional context

No response

fkhadra commented 8 months ago

Hey @SimFG, I see that you are using go v1.19.*. Since v2.7 of wails, the minimum required version of go is 1.20 https://wails.io/changelog#changed. Try to bump your go version and see if it solves your issue.

SimFG commented 8 months ago

@fkhadra Thanks your reply. In my computer, i have three go version environment, including 1.18, 1.19, 1.20. How do I can change the version that the wails uses. image

leaanthony commented 8 months ago

https://wails.io/docs/next/reference/cli/#build

SimFG commented 8 months ago

@leaanthony How to change the go version in the output of wails doctor. I have changed the go.mod file. And when i use the wails dev -compiler go1.20, the app will also panic.

leaanthony commented 8 months ago

It's whatever is your system default.

SimFG commented 1 month ago

I am using the latest wail version 2.9.1, and this problem still exists. This time I ensured that the go version is consistent and used version 1.21. Where can I see this crash log?