merkle-distributor icon indicating copy to clipboard operation
merkle-distributor copied to clipboard

command yarn test fails

Open iemwill opened this issue 3 years ago • 4 comments

Hello team!

Like this project and would love to see everything running. Compiling and installing was fine, but yarn test gave me the following error which i couldn't resolve until now. node -v = v14.17.0 npm -v = 7.17.0

/merkle-distributor$ yarn test
yarn run v1.22.10
$ yarn compile
$ rimraf ./build/
$ waffle
$ mocha


  MerkleDistributor
    #token
      1) "before each" hook: deploy token


  0 passing (64ms)
  1 failing

  1) MerkleDistributor
       "before each" hook: deploy token:
     Uncaught Error: Callback was already called.
      at /merkle-distributor/node_modules/merkle-patricia-tree/node_modules/async/lib/async.js:43:36
      at WriteStream.<anonymous> (node_modules/merkle-patricia-tree/node_modules/async/lib/async.js:358:17)
      at WriteStream.destroy (node_modules/merkle-patricia-tree/node_modules/level-ws/level-ws.js:140:8)
      at finish (internal/streams/writable.js:670:14)
      at processTicksAndRejections (internal/process/task_queues.js:82:21)

/merkle-distributor/node_modules/merkle-patricia-tree/node_modules/async/lib/async.js:358
                callback(err);
                ^
Error: Callback was already called.
    at /merkle-distributor/node_modules/merkle-patricia-tree/node_modules/async/lib/async.js:43:36
    at WriteStream.<anonymous> (/merkle-distributor/node_modules/merkle-patricia-tree/node_modules/async/lib/async.js:358:17)
    at WriteStream.emit (events.js:376:20)
    at WriteStream.destroy (/merkle-distributor/node_modules/merkle-patricia-tree/node_modules/level-ws/level-ws.js:140:8)
    at finish (internal/streams/writable.js:670:14)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

iemwill avatar Jun 30 '21 10:06 iemwill

https://docs.github.com/en/github/site-policy/github-community-guidelines#appeal-and-reinstatement

Brenda-01-01 avatar Jul 23 '21 17:07 Brenda-01-01

Has this problem been solved? I also encountered the same problem.

Probie311 avatar Nov 19 '21 03:11 Probie311

nope, got in general a bunch of problems with npm and nodejs. Guess there is a lot of code-optimization or maybe even ai help necessary, which would help a lot of interested devs to continue on their work as well as not loose motivation to create! Some Ethereum ec. money should go there indeed.

iemwill avatar Nov 19 '21 16:11 iemwill

Downgrading to Node v13.9.0 worked for me.

manumonti avatar Feb 23 '22 01:02 manumonti