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

Help Needed - Web-Client Always Throws Error "Function Import Requires a Callable" #45

Open
jerryokk opened this issue Mar 6, 2023 · 2 comments

Comments

@jerryokk
Copy link

jerryokk commented Mar 6, 2023

I am facing an issue with my web-client where it always throws an error "Function Import Requires a Callable". I have tried to resolve it by changing two different computers but it still persists. My web-client address is https://jerryokk.github.io/webtty/ and I have attached a screenshot for your reference (👇👇👇).
image

Can you please help me fix this issue?

Versions:
npm version: 6.14.4
Node.js version: v10.19.0
Go version: 1.20.1

@jerryokk
Copy link
Author

jerryokk commented Mar 6, 2023

image
use nginx

@canghai908
Copy link

I know,you can

cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" webtty/web-client/src/

overwrite this file wasm_exec.js and

npm run build

will work.

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