You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dom/v2 package uses syscall/js package to access the browser's DOM API. The syscall/js package is only available when building with GOOS=js GOARCH=wasm or with GopherJS (which uses GOARCH=js).
I suspect the problem is you're trying to build your program for the wrong OS/architecture that doesn't support syscall/js.
Hello, I'm trying to get this project for the first time. I used
go mod
for my project.It's success to get the package mentioned using
go get honnef.co/go/js/dom/v2
and when I check the folder it's exist with the following tree :But when I import it on my simple project it says
This is my code
The text was updated successfully, but these errors were encountered: