-
Notifications
You must be signed in to change notification settings - Fork 679
Import fails on MacOS with Node 12 #425
Comments
Thanks for this! These abandoned native transitive deps have been quite the headache for many projects here at Truffle! |
@markspanbroek Are you sure that upgrading Web3.js is also still dependent on Scrypt.js: https://github.com/ethereum/web3.js/blob/1.0/packages/web3-eth-accounts/package.json#L25 But you are right that both of the packages use Scryot.js |
@adrianmcli that's it exactly. Updating to scrypt.js 0.3.0 marks the native scrypt dependency as optional. With Node 12.1.0 the native scrypt doesn't compile, but as long as it's optional that doesn't matter. |
@markspanbroek noted, I'll bring this up to the team and hopefully @davidmurdoch can prioritize this. |
@markspanbroek This should be fixed in ganache-core v2.5.7 although it was absent from the release notes (fixed now). Can you test it out and reopen this issue if it still doesn't work? |
Thanks! Works like a charm. |
Still getting errors on |
@liamzebedee, we don't currently develop ganache-core or ganache-cli using node 12 currently. If you want to work on ganache-cli or ganache-core itself use node v10 or v8. Otehrwise |
@davidmurdoch ganache-cli still has a devDependency on |
@liamzebedee. Yes, but because it is a |
the latest version of |
I'm unable to use ganache-core on MacOS with Node 12. I seem to have hit a combination of #297 (optional depencency on scrypt is not so optional) and barrysteyn/node-scrypt#192 (scrypt doesn't and will never work on MacOS and Node 12).
Expected Behavior
When I import ganache-core, I expect no errors.
Current Behavior
I see the following error:
Possible Solution
Updating ethereumjs-wallet and web3 to the latest versions should remove the dependency on scrypt.
Steps to Reproduce (for bugs)
Luckily the problem also manifests itself when running the unit tests of ganache-core, so the steps to reproduce are simple:
yarn
yarn build
yarn test
Context
I use ganache-core as a web3 provider in Truffle for testing.
Your Environment
The text was updated successfully, but these errors were encountered: