-
Notifications
You must be signed in to change notification settings - Fork 29
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
Uncaught (in promise) TypeError: fs.writeSync is not a function #16
Comments
Minor update. I was correct that the node example was not working, but it was a separate issue. The node example works if I change
I found a similar issue ("syscall/js: make wasm_exec.js compatible with Webpack" here) related to |
I found a partial fix, at least it avoids the above error which occurs when executing
To:
The page displays ok, and clicking on "simulate an error" works, but changing integer values does not affect the "Value is now" value, which is always '0'. |
Fixed! Applying the main.go / add() fix from the node example to the web example, both examples now work. I'm going to add a Svelte based example. Let me know if you would like a PR. |
I've published a fork as a new plugin which works with golang v1.13: |
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:
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
The text was updated successfully, but these errors were encountered: