Hi,
I have the following error when I do "brownie compile"
Invalid command. Try 'brownie --help' for available commands.
PS C:\Users\Admin\nft project> brownie compile
INFO: Could not find files for the given pattern(s).
Compiling contracts...
Solc version: 0.6.6
Optimizer: Enabled Runs: 200
EVM Version: Istanbul
CompilerError: solc returned the following errors:
contracts/simplecollectible.sol:3:1: ParserError: Source "@openzeppelin/contracts/token/ERC721/ERC721.sol" not found: *File outside of allowed directories.
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
^-------------------------------------------------------^
the code on my contract is the following:
//SPDX-Licence-Identifier:<SPDX-Licence>
pragma solidity ^0.6.6;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
contract simplecollectibe is ERC721 {
uint256 public tokencounter;
constructor () ERC721("Dogie","DOG") public {
tokencounter= 0;
}
function createCollectible() public returns (uint256){
uint256 newtokenid=tokencounter;
_safeMint(msg.sender,newtokenid);
tokencounter= tokencounter + 1;
return newtokenid;
}
}
any suggestions on how to fix it? thanks!!