Open
Description
Just installed gopherjs
and go1.17.2
on my mac. Calls to fmt.Println() are panicking in the browser. I've reduced it to the simplest possible test case:
package main
import "fmt"
func main() {
fmt.Println("Hello, GopherJs")
}
No errors or warning when transpiling. The error reported in the browser (via devtools) is:
Uncaught Error: runtime error: native function not implemented: internal/abi.FuncPCABI0
at $callDeferred (..js:1506)
at $panic (..js:1549)
at throw$1 (runtime.go:384)
at Object.FuncPCABI0 (wrap.go:103)
at write (zsyscall_darwin_amd64.go:1635)
at Write (syscall_unix.go:214)
at ignoringEINTRIO (fd_unix.go:582)
at Object.$packages.internal/poll.FD.ptr.Write (fd_unix.go:275)
at Object.$packages.os.File.ptr.write (file_posix.go:49)
at Object.$packages.os.File.ptr.Write (file.go:176)
at Fprintln (print.go:265)
at Object.Println (..js:23892)
at main (main.go:6)
at $init (..js:25201)
at $goroutine (..js:1569)
at $runScheduled (..js:1609)
at $schedule (..js:1625)
at $go (..js:1601)
at ..js:25213
at ..js:25216
Paths and system info:
% uname -a
Darwin michaels-mbp.lan 19.6.0 Darwin Kernel Version 19.6.0: Thu Sep 16 20:58:47 PDT 2021; root:xnu-6153.141.40.1~1/RELEASE_X86_64 x86_64
% which go
/usr/local/go/bin/go
% go version
go version go1.17.2 darwin/amd64
% gopherjs version
GopherJS 1.17.0+go1.17.1
I'm new to gopherjs (but not to Go) so this is probably some silly configuration issue but darned if I can figure it out. Any help appreciated!