webtty icon indicating copy to clipboard operation
webtty copied to clipboard

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

Open jerryokk opened this issue 2 years ago • 2 comments

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 avatar Mar 06 '23 09:03 jerryokk

image use nginx

jerryokk avatar Mar 06 '23 13:03 jerryokk

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.

canghai908 avatar May 11 '23 04:05 canghai908