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
When I want compile my golang app to wasm file I get errors: /go/pkg/mod/golang.org/x/net@v0.24.0/http2/transport.go:26:2: package net/http/httptrace is not in std (/root/.cache/tinygo/goroot-646f794f1c545d78f790d72fe3114fa1e0882f6cfab7deac934ba87ff42a6934/src/net/http/httptrace) /go/pkg/mod/google.golang.org/grpc@v1.63.2/internal/transport/proxy.go:29:2: package net/http/httputil is not in std (/root/.cache/tinygo/goroot-646f794f1c545d78f790d72fe3114fa1e0882f6cfab7deac934ba87ff42a6934/src/net/http/httputil)
Golang version: go version go1.21.6 linux/amd64
tinygo version: tinygo version 0.31.2 linux/amd64 (using go version go1.21.6 and LLVM version 17.0.1)
My command: tinygo build --no-debug -scheduler=none -target=wasi -o filter.wasm cmd/filter.go
If I use tinygo version 0.29 I get errors:
The text was updated successfully, but these errors were encountered:
iltatarin
changed the title
tinygo can't compile wasm file
tinygo can't compile GO app to wasm file
Apr 9, 2024
When I want compile my golang app to wasm file I get errors:
/go/pkg/mod/golang.org/x/net@v0.24.0/http2/transport.go:26:2: package net/http/httptrace is not in std (/root/.cache/tinygo/goroot-646f794f1c545d78f790d72fe3114fa1e0882f6cfab7deac934ba87ff42a6934/src/net/http/httptrace) /go/pkg/mod/google.golang.org/grpc@v1.63.2/internal/transport/proxy.go:29:2: package net/http/httputil is not in std (/root/.cache/tinygo/goroot-646f794f1c545d78f790d72fe3114fa1e0882f6cfab7deac934ba87ff42a6934/src/net/http/httputil)
Golang version: go version go1.21.6 linux/amd64
tinygo version: tinygo version 0.31.2 linux/amd64 (using go version go1.21.6 and LLVM version 17.0.1)
My command:
tinygo build --no-debug -scheduler=none -target=wasi -o filter.wasm cmd/filter.go
If I use tinygo version 0.29 I get errors:
The text was updated successfully, but these errors were encountered: