Midnight Embedded wallet not working in the browser #41
Closed
ErickRomeroDev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Midnight Wallet builder works for nodejs but it fails when built in the browser.
I was playing with the wallet implementation, and i hit the error some of other dev working with the wallet mentioned
apparently, the implementation right now available only works for node
when run in the browser i get this error <chunk-DUK4RJVP.js?v=49859ff3:4741 Uncaught TypeError: Cannot destructure property 'stat' of 'import_node_fs.promises' as it is undefined.>
which is embeded within the wallet library
this is something that i will comment with the midnight team to see how they can solve it.
or update the lib to make it browser compatible.
I have included in the starter template a script with some wallet functions
https://github.com/MeshJS/midnight-starter-template/blob/main/counter-cli/src/scripts/embedded-wallet.ts
Beta Was this translation helpful? Give feedback.
All reactions