Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when exporting to WASM #35

Closed
pikomonde opened this issue Jan 16, 2022 · 1 comment
Closed

Error when exporting to WASM #35

pikomonde opened this issue Jan 16, 2022 · 1 comment

Comments

@pikomonde
Copy link
Contributor

When I run this cli command to generate wasm binary:
GOOS=js GOARCH=wasm go build -o output/html/aneka_guess_number/script/app.wasm cmd/html/aneka_guess_number/app.go

I got this error:

vendor/github.com/fatih/color/color.go:21:5: undefined: isatty.IsTerminal

I tried to resolve this by bump up the version of github.com/fatih/color, from v1.7.0 to v1.9.0. After bumping up the version, I can compile to WASM. I create the related PR to bump up the version. #34


It's my first time creating PR to open source project, please correct me if there is mistake. Thanks!

@gagliardetto
Copy link
Owner

Thank you!

Merged #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants