Skip to content

v1.0.22 Build error #32

@mo7cc

Description

@mo7cc

当 github.com/wailsapp/go-webview2 v1.0.22

wails dev 会报错 :

Building application for development...
  • Generating bindings: Done.
  • Generating application assets: Done.
  • Compiling application: # github.com/wailsapp/wails/v2/internal/frontend/desktop/windows
C:\Users\mo7cc\go\pkg\mod\github.com\wailsapp\wails\v2@v2.10.2\internal\frontend\desktop\windows\frontend.go:482:29: cannot use f.processMessage (value of type func(message string)) as func(message string, sender *edge.ICoreWebView2, args *edge.ICoreWebView2WebMessageReceivedEventArgs) value in assignment

Build error - exit status 1
No version running, build will be retriggered as soon as changes have been detected

回退版本 github.com/wailsapp/go-webview2 v1.0.21
一切正常

go.mod 内容如下

module wails_demo

go 1.25

require github.com/wailsapp/wails/v2 v2.10.2

require (
	github.com/bep/debounce v1.2.1 // indirect
	github.com/go-ole/go-ole v1.3.0 // indirect
	github.com/godbus/dbus/v5 v5.1.0 // indirect
	github.com/google/uuid v1.6.0 // indirect
	github.com/gorilla/websocket v1.5.3 // indirect
	github.com/jchv/go-winloader v0.0.0-20250406163304-c1995be93bd1 // indirect
	github.com/labstack/echo/v4 v4.13.4 // indirect
	github.com/labstack/gommon v0.4.2 // indirect
	github.com/leaanthony/go-ansi-parser v1.6.1 // indirect
	github.com/leaanthony/gosod v1.0.4 // indirect
	github.com/leaanthony/slicer v1.6.0 // indirect
	github.com/leaanthony/u v1.1.1 // indirect
	github.com/mattn/go-colorable v0.1.14 // indirect
	github.com/mattn/go-isatty v0.0.20 // indirect
	github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
	github.com/pkg/errors v0.9.1 // indirect
	github.com/rivo/uniseg v0.4.7 // indirect
	github.com/samber/lo v1.52.0 // indirect
	github.com/tkrajina/go-reflector v0.5.8 // indirect
	github.com/valyala/bytebufferpool v1.0.0 // indirect
	github.com/valyala/fasttemplate v1.2.2 // indirect
	github.com/wailsapp/go-webview2 v1.0.21 // indirect
	github.com/wailsapp/mimetype v1.4.1 // indirect
	golang.org/x/crypto v0.43.0 // indirect
	golang.org/x/net v0.46.0 // indirect
	golang.org/x/sys v0.37.0 // indirect
	golang.org/x/text v0.30.0 // indirect
)

设备名称 Mark-PC
处理器 AMD Ryzen 9 9900X 12-Core Processor (4.39 GHz)
机带 RAM 96.0 GB (93.6 GB 可用)
设备 ID D3D0BC56-7EE8-4531-A791-D79D02C3187C
产品 ID 00330-80000-00000-AA672
系统类型 64 位操作系统, 基于 x64 的处理器
笔和触控 为 10 触摸点提供触控支持

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions