Go to wasm : `go::debug` has not been defined

171 views
Skip to first unread message

Stan Srednyak

unread,
Apr 12, 2023, 11:12:48 AM4/12/23
to golang-nuts
I compiled a Go program to wasm using

GOOS=js GOARCH=wasm go build -o main.wasm

It gives me the following error

Error: failed to run main module `main.wasm`

Caused by:
    0: failed to instantiate "main.wasm"
    1: unknown import: `go::debug` has not been defined

How to fix this?


Arul Pandiyan G

unread,
Jun 20, 2023, 8:32:22 AM6/20/23
to golang-nuts
Any update on this?

Stan Srednyak

unread,
Jun 20, 2023, 9:36:16 AM6/20/23
to Arul Pandiyan G, golang-nuts

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a09b9d89-27d2-4990-8d44-6199c376c6d9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages