fireblocks / fireblocks-web3-provider

Fireblocks EIP-1193 Compatible Ethereum JavaScript Provider
MIT License
33 stars 19 forks source link

`gasless` branch build fails #13

Closed HasmH closed 6 months ago

HasmH commented 1 year ago

Hey team fireblocks,

Description

Our team recently integrated the gasless branch within our project and ran into some issues when resolving the @fireblocks-web3-provider dependency in our project. Running npm i for our project, causes build errors when trying to resolve your package. I understand there is a demo that comes with instructions, however following the instructions in an isolated environment still produces the below error.

Screenshots

MicrosoftTeams-image (7)

Files

package.json

To Reproduce

node version v16.20.0 npm version 8.19.4 typescript version 4.0.0 "@fireblocks/fireblocks-web3-provider": "github:fireblocks/fireblocks-web3-provider#gasless", as a dependency in projects package.json

Tasks

The workaround for this was to npm uninstall @types/mocha in the node_modules of the web3-provider, via the package.json of the root project, while also following the demo instructions like so - having a postinstall command run:

"postinstall": "(cd node_modules/@fireblocks/fireblocks-web3-provider && npm install && npm uninstall @types/mocha && npm run build && cp -rf src/abi dist/)",

Any way to resolve this without having to uninstall dependencies of this package?