kbpgp icon indicating copy to clipboard operation
kbpgp copied to clipboard

"Buffer" not found when using with React. More docs?

Open James-Firth opened this issue 4 years ago • 0 comments

I tried using this with the Typescript templates in the latest Create React App and Vitejs and ran into issues with both, even after a few attempts at using polyfills.

Both of them have issues with the Node class Buffer, it seems a dependency (salsa20) is using it directly?

I think it would be ideal to have kbpgp released to work 100% natively on the web instead of requiring Node stuff. (Though the polyfills do work for some people)

If that's not possible I think some docs explaining how to set it up in a few common web frameworks such as React using webpack or Rollup?

If I misunderstanding anything please let me know!

James-Firth avatar Dec 31 '21 23:12 James-Firth