bitcoinjs / tiny-secp256k1

A tiny secp256k1 native/JS wrapper
MIT License
92 stars 54 forks source link

Buffer is not defined #100

Closed acmeid closed 1 year ago

acmeid commented 1 year ago

An error is reported in the browser:

Uncaught ReferenceError: Buffer is not defined
    at ./node_modules/tiny-secp256k1/rfc6979.js (rfc6979.js:3:1)
junderw commented 1 year ago

Duplicate of #47

Webpack removed automatic Buffer support, and you need to add the Buffer inclusion explicitly in your config file.

Please check your bundler's documentation about the NodeJS Buffer API and it should help you include Buffer.