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

WASM build failing #19

Open
apuatcfbd opened this issue Dec 27, 2023 · 3 comments
Open

WASM build failing #19

apuatcfbd opened this issue Dec 27, 2023 · 3 comments

Comments

@apuatcfbd
Copy link

apuatcfbd commented Dec 27, 2023

I'm trying to put it in WASM to be used with JS (in browser). But WASM build is failing.
Build cmd GOOS=js GOARCH=wasm go build -o main.wasm main.go

error

# github.com/qiniu/iconv
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/reader.go:11:11: undefined: Iconv
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/reader.go:19:19: undefined: Iconv
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/reader.go:21:13: undefined: DefaultBufSize
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/reader.go:49:14: undefined: EILSEQ
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/writer.go:12:11: undefined: Iconv
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/writer.go:19:19: undefined: Iconv
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/writer.go:21:13: undefined: DefaultBufSize
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/writer.go:70:15: undefined: EILSEQ
/home/user/go/pkg/mod/github.com/qiniu/[email protected]/writer.go:102:15: undefined: EILSEQ
@apuatcfbd
Copy link
Author

@justinmichaelvieira 's pr is working fine

@justinmichaelvieira
Copy link

@apuatcfbd makes sense, since my pr fully removes the qiniu/iconv dependency :)

@justinmichaelvieira
Copy link

#14 closes this

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