I am using an OpenZeppelin contract wizard ERC20 contract and was able to test successfully in Remix but upon transfer to VSCode I get this import error. I have downloaded OpenZeppelin contracts locally in node_modules with no success?
have you tried googling the error message? see here: https://stackoverflow.com/questions/67321111/file-import-callback-not-supported
I have tried googling and attempting many fixes.
Hi, welcome to the community!
I think when you want to use some local dependency contracts, you should install them at first, such as npm install @openzeppelin/contracts
and then import the contract you want to use, such as import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
1 Like