bitcoinjs / tiny-secp256k1

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

Bug when using browserify #98

Closed Anderson-Juhasc closed 1 year ago

Anderson-Juhasc commented 1 year ago

node: v16.18.1 npm: 7.12.0 browserify: v17.0.0

I only run browserify file.js -o bundle.js with it:

const ecc = require('tiny-secp256k1')

Screenshot from 2022-12-08 10-42-04

Anderson-Juhasc commented 1 year ago

I updated the node and npm but got the same error:

node: v19.2.0 npm: 8.19.3

vladstarikov88 commented 1 year ago

Same for me. I just defined the dependency without any runnin script. And I got this

image

junderw commented 1 year ago

Maybe we should stop recommending browserify. It seems like it's not active lately.

Webpack seems to work fine with the new Node exports directive in package.json.