hardhat-gas-reporter icon indicating copy to clipboard operation
hardhat-gas-reporter copied to clipboard

"Uncaught error outside test suite" on Ubuntu 18.04.3

Open matthewlilley opened this issue 3 years ago • 11 comments

Latest hardhat and latest hardhat gas reporter results in 1) Uncaught error outside test suite with zero config setup, and with config setup.

Node LTS v14.15.1

matthewlilley avatar Dec 12 '20 08:12 matthewlilley

We tried to debug this and it seemed like it might be tied to a specific Ubuntu setup, but the exact cause wasn't found...

Version info:

Description:    Ubuntu 18.04.3 LTS
Release:        18.04

cgewecke avatar Dec 12 '20 19:12 cgewecke

Same issue here

artsparkAI avatar Feb 04 '21 04:02 artsparkAI

@NotRealAI Do you have any more info that could help debug this? Are you also on this ubuntu version?

cgewecke avatar Feb 04 '21 05:02 cgewecke

@NotRealAI Do you have any more info that could help debug this? Are you also on this ubuntu version?

Ubuntu 19.10 / Node 10.15 here. Wish I had something more to give you.

artsparkAI avatar Feb 06 '21 16:02 artsparkAI

Ok, that's helpful. Now we have four Ubuntu / Node configurations and three occurrences of the error.

Ubuntu Node ok who
18.04 14.15.1 matthewlilley
19.10 10.15 notrealAI
20.04 (?) 12.16 hh-gr circleCI
20.04 16.13.0 stevieraykatz

(This problem might not be os related, idk)

cgewecke avatar Feb 06 '21 18:02 cgewecke

For people who also found this issue via google :) Had such issue, removing 'eth-gas-reporter' helped. Also for more error details you can run DEBUG='*' time npx hardhat

pumpurum2 avatar Nov 04 '21 14:11 pumpurum2

Ran into this issue just now running ubuntu 20.04, npm 8.1.0, node v16.13.0

hardhat version: ├── [email protected]

mocha: ├── @types/[email protected]

chai: ├── [email protected]

hardhat-gas-reporter: ├── [email protected]

Happy to provide any additional context for debugging here.

stevieraykatz avatar Nov 24 '21 23:11 stevieraykatz

@stevieraykatz If you run npm list eth-gas-reporter in your project do you see more than one version?

cgewecke avatar Nov 24 '21 23:11 cgewecke

Nope. Just the one that's inherited from this package:

└─┬ [email protected]
     └── [email protected]

stevieraykatz avatar Nov 24 '21 23:11 stevieraykatz

I have the same issue with latest version of HardHat on macOS: 1) Uncaught error outside test suite:

k06a avatar Nov 25 '22 22:11 k06a

Full output:

  76 passing (8s)
  1 failing

  1) Uncaught error outside test suite:
     Uncaught TypeError: Do not know how to serialize a BigInt
      at stringify (<anonymous>)
      at writeChannelMessage (node:internal/child_process/serialization:127:20)
      at process.target._send (node:internal/child_process:839:17)
      at process.target.send (node:internal/child_process:739:19)
      at ~/Projects/NGGYU/node_modules/workerpool/src/worker.js:131:22

k06a avatar Nov 25 '22 22:11 k06a