mrmiguu / coco

Golang WebAssembly Framework
MIT License
110 stars 4 forks source link

build constraints exclude all Go files in /usr/lib/go/src/syscall/js #3

Open kaihendry opened 5 years ago

kaihendry commented 5 years ago
[hendry@t480s ~]$ go get github.com/mrmiguu/coco

go/src/github.com/mrmiguu/coco/coco.go:9:2: build constraints exclude all Go files in /usr/lib/go/src/syscall/js
[hendry@t480s ~]$
[hendry@t480s ~]$ npm i -g go-wasm-cli
/home/hendry/.node_modules/bin/go-wasm -> /home/hendry/.node_modules/lib/node_modules/go-wasm-cli/cli.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/go-wasm-cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ go-wasm-cli@0.0.3
added 394 packages from 299 contributors in 10.249s
[hendry@t480s ~]$ go get github.com/mrmiguu/coco
go/src/github.com/mrmiguu/coco/coco.go:9:2: build constraints exclude all Go files in /usr/lib/go/src/syscall/js
[hendry@t480s ~]$ go version
go version go1.12 linux/amd64

What am I missing?

mrmiguu commented 5 years ago

If you check out this thread that helped me out big time. Also you might hit one more bump along the way. I forget exact what that was for me but it also was an easy fix. Feel free to create a new issue for that one if you hit it. Thanks!

(p.s. this is a universal issue related to Go/Wasm in general, so no worries.)