Source "@openzeppelin/contracts/access/Ownable.sol" not found: File import callback not supported
Thing is, I can’t even see a folder showing the several solidity files for the OpenZeppelin contracts library in my folder, so I’m not even sure where it was installed.
I am not sure whether you need a package.josn at first, then you can run npm install --save-dev @openzeppelin/contracts, if you have installed successfully, the dependency @openzeppelin should be in the node_modules
Just went to check what @ZenoHwanEth said, even tried adding ./ but didn't work, I keep seeing how the tutorials don't have it and it keep bothering me
Hi, had the same issue as you, simply need to redirect to the right folder before running npm install so do this:
in your terminal enter cd followed by the projects path
then run npm install @openzeppelin/contracts
Its always the very simple things that take up most of our time, thats why its good to always have someone to work with. Two people are less likely to make the same mistake