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
I am trying to build my wasm code here using the following command:
tinygo build -o wasm.wasm -target wasm ./wasm
I get the following error:
# github.com/mitchellh/mapstructure
../../go/pkg/mod/github.com/mitchellh/mapstructure@v1.1.2/mapstructure.go:421:16: dataType.PkgPath undefined (type reflect.Type has no field or method PkgPath)
../../go/pkg/mod/github.com/mitchellh/mapstructure@v1.1.2/mapstructure.go:537:16: dataType.PkgPath undefined (type reflect.Type has no field or method PkgPath)
../../go/pkg/mod/github.com/mitchellh/mapstructure@v1.1.2/mapstructure.go:565:22: MapOf not declared by package reflect
../../go/pkg/mod/github.com/mitchellh/mapstructure@v1.1.2/mapstructure.go:713:21: MapOf not declared by package reflect
../../go/pkg/mod/github.com/mitchellh/mapstructure@v1.1.2/mapstructure.go:806:23: SliceOf not declared by package reflect
../../go/pkg/mod/github.com/mitchellh/mapstructure@v1.1.2/mapstructure.go:884:23: ArrayOf not declared by package reflect
I don't know if i is related to #575#447 or not, so I create new issue here.
The text was updated successfully, but these errors were encountered:
While much work has been done on reflection recently, mapstructure uses a number of features that we don't support yet, most notably creating types at runtime with MapOf and friends. You code should build now, but might not run as you expect.
dgryski
changed the title
Reflect does not have field or method when compiling to wasm
mapstructure requires MapOf and friends
Mar 23, 2023
I am trying to build my wasm code here using the following command:
tinygo build -o wasm.wasm -target wasm ./wasm
I get the following error:
I don't know if i is related to #575 #447 or not, so I create new issue here.
The text was updated successfully, but these errors were encountered: