starter-kit-tutorial icon indicating copy to clipboard operation
starter-kit-tutorial copied to clipboard

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

Open MWaser opened this issue 6 years ago • 1 comments

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"; ^---------------------------^

MWaser avatar Feb 03 '20 15:02 MWaser

I’m sorry that you had this Issue.

You can try the following work around: Running on Windows Subsystem for Linux (WSL) https://forum.openzeppelin.com/t/solidity-smart-contract-development-on-windows/2110

I run WSL with node 10.

I was able to reproduce with the following steps: On Windows 10 Node v12.14.1 After unpacking the Tutorial starter kit, run: npx oz compile

The project owner should review this Issue in 7 days.

abcoathup avatar Feb 07 '20 09:02 abcoathup