Replies: 1 comment
-
Reply w the hardhat-config please |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I was trying out the FundMe and was creating my own contract; and stumbled across a weird exception with hardhat-gas-reporter.
Regardless of what ever I tried, hardhat-gas-reporter fails always with nativeNC failed exception.
Made sure there is no
eth-gas-reporter
installed, and my hardhat config has onlyenabled: true
, and removed all other options like
coinmarketcap, currency, token
etc. to ensure they are not causing the exception.The tests passes successfully (with network
localhost
andhardhat
) if I comment out or removerequire("hardhat-gas-reporter")
, so tests are not the problem.Tried with networks,
hardhat, localhost, testnets (rinkeby, goerli)
, nothing helped.$ npx hardhat test --network localhost
An unexpected error occurred:
TypeError: nativeNC failed:
code: 'ERR_MOCHA_INVALID_REPORTER',
reporter: 'D:\development\carbon\cct\node_modules\eth-gas-reporter\index.js'
}
There is only
hardhat-gas-reporter
, as you can see below.$ npm list | grep gas-report
├── hardhat-gas-reporter@1.0.8
$ npm list -g | grep gas-report
├── hardhat-gas-reporter@1.0.8
Any help is much appreciated! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions