Hi, my dApp uses openzeppelin version
We are trying to integrate @opengsn v2, which requires openzeppelin version
When I try to compile the code, this error throws:
Error HH404: File @openzeppelin/contracts/utils/cryptography/draft-EIP712.sol, imported from contracts/ERC721Permit.sol, not found.
The issue is in the node modules, where one version of openzeppelin overrides the other, rendering some contracts imports broken.
create a smart contract with compiler version
^0.8.0that imports @openzeppelin/contracts/utils/cryptography/draft-EIP712.sol
also use the opengsn v2 (which imports the openzeppelin SafeMath library that is no longer needed with Solidity compiler version
Try to compile your code and see errors pertaining to conflicting node module package imports.
I'm using HardHat version 2.9.2 and Solidity compiler version