maxmcd / webtty

Share a terminal session over WebRTC

Home Page:https://maxmcd.github.io/webtty/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jerryokk opened this issue · 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

image
use nginx

commented

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.