Skip to content

[V3] Upgrade to v3.0.0-alpha.25: startup build error #4513

@landaiqing

Description

@landaiqing

Description

Upgrade to Wails v3 Alpha Release - v3.0.0-alpha.25,startup build error

wails3 dev
2025/08/16 23:10:12 INFO Changing Working Directory dir=E:\Go_WorkSpace\voidraft/
2025/08/16 23:10:12 INFO Refresh Starting...
task: Task "common:install:frontend:deps" is up to date

Need documentation? Run: wails3 docs
 ♥   If Wails is useful to you or your company, please consider sponsoring the project: wails3 sponsor
task: Task "common:install:frontend:deps" is up to date
task: [common:dev:frontend] npm run dev -- --port 9245 --strictPort
task: [windows:common:go:mod:tidy] go mod tidy
task: [windows:common:generate:icons] wails3 generate icons -input appicon.png -macfilename darwin/icons.icns -windowsfilename windows/icons.ico
task: [windows:common:go:mod:tidy] go mod tidy

> frontend@0.0.0 dev
> vite --host --mode development --port 9245 --strictPort

task: Task "windows:common:install:frontend:deps" is up to date
task: Task "windows:common:generate:bindings" is up to date

  VITE v7.1.2  ready in 1006 ms

  ➜  Local:   http://localhost:9245/                                                                                                                                             
  ➜  Network: http://192.168.10.1:9245/                                                                                                                                          
  ➜  Network: http://192.168.9.1:9245/                                                                                                                                           
  ➜  Network: http://192.168.0.101:9245/                                                                                                                                         
  ➜  Network: http://172.21.144.1:9245/                                                                                                                                          
task: Task "windows:common:build:frontend" is up to date
task: [windows:generate:syso] wails3 generate syso -arch amd64 -icon windows/icon.ico -manifest windows/wails.exe.manifest -info windows/info.json -out ../wails_windows_amd64.syso
task: [windows:build] go build -buildvcs=false -gcflags=all="-l" -o bin/voidraft.exe
# github.com/wailsapp/wails/v3/pkg/application
D:\GoPath\pkg\mod\github.com\wailsapp\wails\v3@v3.0.0-alpha.25\pkg\application\webview_window_windows.go:1916:29: cannot use w.processMessage (value of type func(message string)) as func(message string, sender *edge.ICoreWebView2, args *edge.ICoreWebView2WebMessageReceivedEventArgs) value in assignment
  ERROR   task: Failed to run task "build": exit status 1
2025/08/16 23:10:36 ERROR Running Command exec="wails3 task build" err="exit status 1"
  ERROR   An error occured while starting proceses

To Reproduce

Upgrade to Wails v3 Alpha Release - v3.0.0-alpha.25

Expected behaviour

.

Screenshots

Image Image

Attempted Fixes

No response

System Details

wails3 doctor
 Wails (v3.0.0-alpha.9)  Wails Doctor 

# System 

┌────────────────────────────────────────────────────────────────────────────────────────────┐
| Name              | Windows 10 Pro for Workstations                                        |
| Version           | 2009 (Build: 26100)                                                    |
| ID                | 24H2                                                                   |
| Branding          | Windows 11 专业工作站版                                                |
| Platform          | windows                                                                |
| Architecture      | amd64                                                                  |
| Go WebView2Loader | true                                                                   |
| WebView2 Version  | 139.0.3405.86                                                          |
| CPU               | 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz                         |
| GPU 1             | NVIDIA GeForce RTX 3050 Ti Laptop GPU (NVIDIA) - Driver: 32.0.15.7700  |
| Memory            | 16GB                                                                   |
└────────────────────────────────────────────────────────────────────────────────────────────┘

# Build Environment 

┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| Wails CLI      | v3.0.0-alpha.9                                                                                                                                                                                                                                                                                                                                                   |
| Go Version     | go1.24.3                                                                                                                                                                                                                                                                                                                                                         |
| -buildmode     | exe                                                                                                                                                                                                                                                                                                                                                              |
| -compiler      | gc                                                                                                                                                                                                                                                                                                                                                               |
| CGO_CFLAGS     |                                                                                                                                                                                                                                                                                                                                                
                  |
| CGO_CPPFLAGS   | -IC:\opencv\build\install\include                                                                                                                             
                                                                                                                                                                                 
                  |
| CGO_CXXFLAGS   | --std=c++11                                                                                                                                                   
                                                                                                                                                                                 
                  |
| CGO_ENABLED    | 1                                                                                                                                                             
                                                                                                                                                                                 
                  |
| CGO_LDFLAGS    | -LC:\opencv\build\install\x64\mingw\lib -lopencv_core4110 -lopencv_face4110 -lopencv_videoio4110 -lopencv_imgproc4110 -lopencv_highgui4110 -lopencv_imgcodecs4
110 -lopencv_objdetect4110 -lopencv_features2d4110 -lopencv_video4110 -lopencv_dnn4110 -lopencv_xfeatures2d4110 -lopencv_plot4110 -lopencv_tracking4110 -lopencv_img_hash4110 -lopencv_calib3d4110 |
| DefaultGODEBUG | asynctimerchan=1,gotestjsonbuildtext=1,gotypesalias=0,httpservecontentkeepheaders=1,multipathtcp=0,randseednop=0,rsa1024min=0,tls3des=1,tlsmlkem=0,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1,x509rsacrt=0,x509usepolicies=0                                                                                      
                  |
| GOAMD64        | v1                                                                                                                                                            
                                                                                                                                                                                 
                  |
| GOARCH         | amd64                                                                                                                                                         
                                                                                                                                                                                 
                  |
| GOOS           | windows                                                                                                                                                       
                                                                                                                                                                                 
                  |
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies 

┌───────────────────────────┐
| NSIS | v3.11              |
| npm  | 11.4.2             |
└─ * - Optional Dependency ─┘

# Diagnosis 

 SUCCESS  Your system is ready for Wails development!                                                                                                                            

Need documentation? Run: wails3 docs
 ♥   If Wails is useful to you or your company, please consider sponsoring the project: wails3 sponsor

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions