You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No matter the version of HardHat, I keep having the following error:
ERROR
Please upgrade your hardhat version to 2.11 or above.
This error is generated by plugin "hardhat-tracer" because it is
dependent on some features available in hardhat >=2.11.0 <3.0.0.
npm i hardhat@latest
or
yarn add hardhat@latest
try{// Try to check if hardhat version is compatible by checking if the package is availablerequire("@nomicfoundation/ethereumjs-vm");}catch{
...
Since the package is not defined in hardhat-tracer's dependencies, I kinda expect ts to throw the following error:
Your application tried to access @nomicfoundation/ethereumjs-vm, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound
Which leads to the error
Potential solution
Adding the package as a dependency might be a solution