ethereumjs-monorepo
ethereumjs-monorepo copied to clipboard
There is no CDN updated to use this package in browser
The CDN for this package is deprecated: https://www.jsdelivr.com/package/npm/ethereumjs-tx
In the docs, the only option to install is by NPM: https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/tx#install
To send a transaction with web3 library, the client needs to use this package (@ethereumjs/tx) in his/hers browser. The client cannot install a package by NPM.
Please, update the docs with another option to install by CDN.
Thanks.
The current package name is https://www.jsdelivr.com/package/npm/@ethereumjs/tx
A quick follow-up question on this any idea why when I try to load the index.min.js file into browser like:
Then in the browser console, it shows the following bug:
ReferenceError: exports is not defined.
Any suggestion on how to solve it will be appreciated. Thanks!
that index.min.js
is not provided by us, jsdelivr does it automatically i believe. if you want to use the package in the browser you should browserify it first: https://www.npmjs.com/package/browserify
OK gotcha, thanks!
I guess we should document our package distribution a bit better and mention that the dist.browser
packages are not meant to be directly used in the browser, this is indeed very much misleading.
Outdated, will close.