Error: Could not find @openzeppelinV2/contracts/token/ERC20/IERC20.sol from any sources;

How to fix it I have added it to my package.json

"devDependencies": {
    "@openzeppelin/contracts": "^2.4.0",
    "@truffle/hdwallet-provider": "^1.0.28",
    "bignumber": "^1.1.0",
    "bignumber.js": "^9.0.0",
    "chai-bignumber": "^3.0.0",
    "ethereumjs-common": "^1.5.0",
    "ethereumjs-tx": "^1.3.7",
    "ethereumjs-util": "^5.2.0",
    "openzeppelin-test-helpers": "^0.5.1",
    "truffle-hdwallet-provider": "^1.0.18",
    "web3": "1.0.0-beta.36"
  }
1 Like

I made it done remove node_modules replace @openzeppelinV2/contracts/token/ERC20/IERC20.sol
with import “@openzeppelin/contracts/token/ERC20/IERC20.sol”; and update version to “@openzeppelin/contracts”: “^2.5.1”,

1 Like

Hi @Madison_Gagnon,

Where did you have @openzeppelinV2? Was this from a tutorial?

1 Like

Yes it was from a video i worked before on openzeppelin 1.5 years ago. I have missed so much there is much update this is why i am asking again and again to get fast up to date.

1 Like

Hi @Madison_Gagnon,

Feel free to ask all the questions that you need. I recommend looking at the OpenZeppelin Learn guides as a way to get back up to speed: https://docs.openzeppelin.com/learn/

It will kill me I learned now brownie XD.

It’s okay I will learn this also ^^ thank you for sharing!

1 Like