bitcoinjs / tiny-secp256k1

A tiny secp256k1 native/JS wrapper
MIT License
86 stars 55 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'buffer') #117

Closed zireal23 closed 1 year ago

zireal23 commented 1 year ago

I am facing this error while using the library with react native on expo with metro bundler and while I suspect this might be an issue with the compatibility of wasm with the bundler itself. Any help or guidance will be appreciated

zireal23 commented 1 year ago

If anyone stumbles upon this, just use the previous version of the library(v1.xx) that doesnt use wasm or you can use an alternative library like the secp256k1 .

junderw commented 1 year ago

React Native recently released a new version with WASM support, but perhaps the various bundlers still haven't gotten around to supporting it.