Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

https://github.com/OpenZeppelin/starter-kit-tutorial #54

Open
@MWaser

Description

Contracts in my contracts folder have no problem finding things like

  • import "@openzeppelin/upgrades/contracts/Initializable.sol";
    

or

  • import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol";
    
  • import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/StandaloneERC20.sol";
    
  • import "@openzeppelin/contracts-ethereum-package/contracts/ownership/Ownable.sol";
    
  •  import "@openzeppelin/upgrades/contracts/Initializable.sol";
    

but it seems that the contracts in @openzeppelin/contracts-ethereum-package/contracts can't find each other. See first few error messages at bottom.

It must be something simple but I've followed the instructions at https://github.com/OpenZeppelin/starter-kit-tutorial exactly several times and can't change the result.

Thanks in advance!!!

=== Error Messages =====
C:\oz>npx openzeppelin compile
× Compiling contracts with solc 0.5.16 (commit.9c3226ce)
Compilation errors:
@openzeppelin/contracts-ethereum-package/contracts/ownership/Ownable.sol:5:1: ParserError: Source "@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol" not found: File import callback not supported
import "../GSN/Context.sol";
^--------------------------^

@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/StandaloneERC20.sol:4:1: ParserError: Source "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20Detailed.sol" not found: File import callback not supported
import "./ERC20Detailed.sol";
^---------------------------^

@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/StandaloneERC20.sol:5:1: ParserError: Source "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20Mintable.sol" not found: File import callback not supported
import "./ERC20Mintable.sol";
^---------------------------^

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions