Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Uncaught error outside test suite" on Ubuntu 18.04.3 #52

Open
matthewlilley opened this issue Dec 12, 2020 · 11 comments
Open

"Uncaught error outside test suite" on Ubuntu 18.04.3 #52

matthewlilley opened this issue Dec 12, 2020 · 11 comments

Comments

@matthewlilley
Copy link

matthewlilley commented Dec 12, 2020

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

@cgewecke cgewecke changed the title Latest versions result in "Uncaught error outside test suite" "Uncaught error outside test suite" on Ubuntu 18.04.3 Dec 12, 2020
@cgewecke
Copy link
Owner

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

@artsparkAI
Copy link

Same issue here

@cgewecke
Copy link
Owner

cgewecke commented Feb 4, 2021

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

@artsparkAI
Copy link

artsparkAI commented Feb 6, 2021

@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.

@cgewecke
Copy link
Owner

cgewecke commented Feb 6, 2021

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)

@pumpurum2
Copy link

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

@stevieraykatz
Copy link

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

hardhat version:
├── hardhat@2.6.4

mocha:
├── @types/mocha@8.2.3

chai:
├── chai@4.3.4

hardhat-gas-reporter:
├── hardhat-gas-reporter@1.0.4

Happy to provide any additional context for debugging here.

@cgewecke
Copy link
Owner

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

@stevieraykatz
Copy link

stevieraykatz commented Nov 24, 2021

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

└─┬ hardhat-gas-reporter@1.0.4
     └── eth-gas-reporter@0.2.22

@k06a
Copy link

k06a commented Nov 25, 2022

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

@k06a
Copy link

k06a commented Nov 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants