PatrickAlphaC/nft-mix

CompilerError

ZachNFT opened this issue · 3 comments

CompilerError: solc returned the following errors:

contracts/AdvancedCollectible.sol:3:1: ParserError: Source "/Users/zach/.brownie/packages/OpenZeppelin/openzeppelin-contracts@3.4.0-contracts/contracts/token/ERC721/ERC721.sol" not found: File not found.
import "@openzeppelin-contracts/contracts/token/ERC721/ERC721.sol";
dependencies:
  - smartcontractkit/chainlink-brownie-contracts@1.1.1
  - OpenZeppelin/openzeppelin-contracts@3.4.0
compiler:
  solc:
    remappings:
      - '@chainlink=smartcontractkit/chainlink-brownie-contracts@1.1.1'
      - '@openzeppelin=OpenZeppelin/openzeppelin-contracts@3.4.0'
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol";

Why am i getting this compiler error?

In your remappings:

'@OpenZeppelin=OpenZeppelin/openzeppelin-contracts@3.4.0'

should not have capital OpenZeppelin before the equals. Instead, do openzeppelin=

The error says @openzeppelin-contracts/contracts/token/ERC721/ERC721.sol

Somewhere in your code, you're doing @openzeppelin-contracts/contracts/token/ERC721/ERC721.sol instead of @openzeppelin/contracts/contracts/token/ERC721/ERC721.sol

Feel free to follow up