Skip to content

Uncaught (in promise) TypeError: fs.writeSync is not a function #16

Closed
@happybeing

Description

@happybeing

I'm trying to get the plugin working with go version go1.13.8 linux/amd64

I have the plugin and both examples building. Running the node example doesn't cause an error, but the result printed is '0'. In the web example, the browser console has the following error on loading:

Uncaught (in promise) TypeError: fs.writeSync is not a function
    wasmWrite wasm_exec.js:248
    run wasm_exec.js:475
    init gobridge.ts:28
    default_1 gobridge.ts:32
    go main.go:2

To get to this point I had to update the ./lib/wasm_exec.js for v1.13 (see attached) but I'm not sure how to fix this error yet.
wasm_exec.js.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions