Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error on v2.8.1 with GOOS=js GOARCH=wasm #773

Open
aaronriekenberg opened this issue Jan 19, 2025 · 0 comments
Open

Compile error on v2.8.1 with GOOS=js GOARCH=wasm #773

aaronriekenberg opened this issue Jan 19, 2025 · 0 comments

Comments

@aaronriekenberg
Copy link
Contributor

Upgrading my go-tetris app from tcell v2.7.4 to v2.8.1.

When building with GOOS=js GOARCH=wasm I am getting this compile error about missing GetClipboard in wscreen.go:

GOOS=js GOARCH=wasm go build -o wasm/tetris.wasm

# github.com/gdamore/tcell/v2
../../go/pkg/mod/github.com/gdamore/tcell/[email protected]/wscreen.go:35:33: cannot use t (variable of type *wScreen) as screenImpl value in struct literal: *wScreen does not implement screenImpl (missing method GetClipboard)

If I build without GOOS=js GOARCH=wasm able to build and run successfully.

go build

Seems wScreen is missing GetClipboard method.

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant