wailsapp / wails

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

mainapp.Shutdown undefined (type *appng.App has no field or method Shutdown) #1594

Closed UvDream closed 2 years ago

UvDream commented 2 years ago

Description

mainapp.Shutdown undefined (type *appng.App has no field or method Shutdown)

To Reproduce

wails init -n myproject -t react-ts

Error when initializing the project

Expected behaviour

can run

Screenshots

No response

Attempted Fixes

No response

System Details

Scanning system - Please wait (this may take a long time)...Done.

System
------
OS:     MacOS
Version:    12.4
ID:     199506
Go Version: go1.18.4
Platform:   darwin
Architecture:   arm64

Wails
------
Version:    v2.0.0-beta.38

Dependency          Package Name    Status      Version
----------          ------------    ------      -------
xcode command line tools    N/A     Installed   2395
npm                 N/A     Installed   8.1.0
*upx                N/A     Available
*nsis               N/A     Available

* - Optional Dependency

mac M1 max

Additional context

No response

leaanthony commented 2 years ago

Thanks for reporting this. With a clean install, I can't reproduce. Is there something that's not in the ticket? Could you please paste the error as you see it?

leaanthony@Leas-MacBook-Air Projects % wails init -n myproject -t react-ts
Wails CLI v2.0.0-beta.38

Initialising Project 'myproject'
--------------------------------

Project Name:      myproject
Project Directory: /Users/leaanthony/Projects/myproject
Project Template:  react-ts
Template Support:  https://wails.io

Initialised project 'myproject' in 108ms.

If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony

leaanthony@Leas-MacBook-Air Projects % 
nap-yu commented 2 years ago

image image

UvDream commented 2 years ago

I solved it, should not go run main.go to run, should waits dev,I have a suggestion, the documentation can be put on this crowdin website,I want to participate in the translation of documents and promote this tool

leaanthony commented 2 years ago

This is fixed on master. Please use master until the next release (might be tonight!) 👍

leaanthony commented 2 years ago

I solved it, should not go run main.go to run, should waits dev,I have a suggestion, the documentation can be put on this crowdin website,I want to participate in the translation of documents and promote this tool

@misitebao has opened a project here. Please contact him 👍

UvDream commented 2 years ago

This is fixed on master. Please use master until the next release (might be tonight!) 👍

Looking forward to the official version very much, looking forward to making a little contribution to the document

leaanthony commented 2 years ago

I've just released v2.0.0-beta.39. Please update using wails update -pre 👍

BigCatGit commented 2 years ago

The problem has been solved after the update