wails icon indicating copy to clipboard operation
wails copied to clipboard

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

Open SimFG opened this issue 1 year ago • 6 comments

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

SimFG avatar Dec 10 '23 15:12 SimFG

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 avatar Dec 17 '23 18:12 fkhadra

@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

SimFG avatar Dec 18 '23 02:12 SimFG

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

leaanthony avatar Jan 03 '24 09:01 leaanthony

@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.

SimFG avatar Jan 03 '24 09:01 SimFG

It's whatever is your system default.

leaanthony avatar Jan 07 '24 09:01 leaanthony

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?

SimFG avatar Jul 15 '24 09:07 SimFG