I'm facing compiling errors due to some problems with the packages installed
I'm using Hardhat and I'm trying to import the packages you see here, I already checked if they are present on the folders, and they are, I tried also to reinstall them. Don't know what to do...
Well, you obviously need to share what the problem is...
Right! I'm sorry I forgot to post the error...
TypeError: Member "toString" not found or not visible after argument-dependent lookup in uint256.
47 | ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json"))
Error HH600: Compilation failed
This is the error I got, it is due to the fact the package
It's not imported correctly, at least is what I assumed. So, my question is how to fix this problem.
I'm using Hardhat.
That's got nothing to do with HardHat, as clearly evident by the compilation error, which points to a specific problem in your contract.
You probably need to add this at the top of that contract:
using Strings for uint256;