Closed
Description
Hello,
I am struggling to get ethers.js to work with rollup.
The specific error that I am encountering in browser is:
Uncaught SyntaxError: The requested module './../../../bn.js/lib/bn.js' does not provide an export named 'default'
Here is a repo to reproduce the error: https://github.com/GradientCap/Graph
Rollup config: https://github.com/GradientCap/Graph/blob/main/rollup.config.js
I've tried setting mainfields and using the commonjs plugin configuration from the ethers repo to no avail.
Any help would be appreciated.