Expected magic word 00 61 73 6d, found 21 3c 61 72 @+0 when loading .wasm file compiled from Go #35657
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?go1.13.4 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I am attempting to compile a go package into webassembly. I had successfully followed the tutorial on the wiki page and applied the same steps to my particular use case. I was able to get a binary .wasm file. In order to do a quick check, I attempted to load the .wasm file into nodejs. When doing this, I get the following error:
I compiled this this code into a .wasm file using
GOOS=js GOARCH=wasm go build -o client.wasm
. Then, I wrote a simply script to ensure that this was done correctly. The script is as follows:What did you expect to see?
Compiled program with warnings
What did you see instead?
See above error.
The text was updated successfully, but these errors were encountered: