bitcoinjs / tiny-secp256k1

A tiny secp256k1 native/JS wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buffer is not defined

acmeid opened this issue · comments

An error is reported in the browser:

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

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.