Skip to content
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 opened this issue Feb 3, 2020 · 1 comment
Open

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

MWaser opened this issue Feb 3, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@MWaser
Copy link

MWaser commented Feb 3, 2020

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

@abcoathup
Copy link
Contributor

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 abcoathup added the bug Something isn't working label Feb 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants