wails
wails copied to clipboard
The start app can't run when i run the `wails dev`
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
wails init -n simfg-wail -t lit-tswails dev
Expected behaviour
there is no error when i run the wails dev
Screenshots
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
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.
@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.
https://wails.io/docs/next/reference/cli/#build
@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.
It's whatever is your system default.
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?