-
Notifications
You must be signed in to change notification settings - Fork 26
oz compile error: The filename, directory name, or volume label syntax is incorrect. #6
Comments
When I try × Compiling contracts with solc 0.5.10 (commit.5a6ea5b1) @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 @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/StandaloneERC20.sol:6:1: ParserError: Source "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20Pausable.sol" not found: File import callback not supported @OpenZeppelin\contracts-ethereum-package\contracts\access\roles\MinterRole.sol:4:1: ParserError: Source "Roles.sol" not found: File import callback not supported @OpenZeppelin\contracts-ethereum-package\contracts\access\roles\PauserRole.sol:4:1: ParserError: Source "Roles.sol" not found: File import callback not supported @OpenZeppelin\contracts-ethereum-package\contracts\lifecycle\Pausable.sol:4:1: ParserError: Source "access/roles/PauserRole.sol" not found: File import callback not supported @OpenZeppelin\contracts-ethereum-package\contracts\token\ERC20\ERC20.sol:4:1: ParserError: Source "IERC20.sol" not found: File import callback not supported @OpenZeppelin\contracts-ethereum-package\contracts\token\ERC20\ERC20.sol:5:1: ParserError: Source "math/SafeMath.sol" not found: File import callback not supported @OpenZeppelin\contracts-ethereum-package\contracts\token\ERC20\ERC20Detailed.sol:4:1: ParserError: Source "IERC20.sol" not found: File import callback not supported @OpenZeppelin\contracts-ethereum-package\contracts\token\ERC20\ERC20Mintable.sol:4:1: ParserError: Source "ERC20.sol" not found: File import callback not supported @OpenZeppelin\contracts-ethereum-package\contracts\token\ERC20\ERC20Mintable.sol:5:1: ParserError: Source "access/roles/MinterRole.sol" not found: File import callback not supported @OpenZeppelin\contracts-ethereum-package\contracts\token\ERC20\ERC20Pausable.sol:4:1: ParserError: Source "ERC20.sol" not found: File import callback not supported @OpenZeppelin\contracts-ethereum-package\contracts\token\ERC20\ERC20Pausable.sol:5:1: ParserError: Source "lifecycle/Pausable.sol" not found: File import callback not supported |
Hey @tab00. It seems to be compiler related issue. Can you run |
I use [email protected] installed using Here's the output of Compiling your contracts...=========================== SyntaxError: Unexpected end of input |
Truffle's MetaCoin example at https://www.trufflesuite.com/docs/truffle/quickstart compiles fine for me. |
I've just tried the Pet Shop tutorial at https://www.trufflesuite.com/tutorials/pet-shop and compilation works fine too. |
I've tried you version and it works on linux machine. I'll try tomorrow on windows machine, don't have it at hand at that moment. |
How did it go in Windows? |
I've just tried a fresh install again of this tutorial, and the same errors appeared. |
Hey @tab00. Sorry for a delay. |
Yes, they are all there. |
How is the progress? I'd like to try the tutorial. |
Hi @tab00, One option would be to use Windows Subsystem for Linux: https://forum.openzeppelin.com/t/solidity-smart-contract-development-on-windows/2110 I am able to reproduce on native Windows and will need to investigate. |
I'm using Windows 10.
I get the following output with errors after
npm run start
:Compiled with warnings.
./src/components/Header/index.js
Line 3: 'logo' is defined but never used no-unused-vars
./src/components/Footer/index.js
Line 5: 'pencil' is defined but never used no-unused-vars
../contracts/Counter.sol
Error: Command failed: 'C:\Users-\Documents\Projects\openzeppelin-starter-kit-tutorial\node_modules.bin\oz' compile
The filename, directory name, or volume label syntax is incorrect.
../contracts/Wallet.sol
Error: Command failed: 'C:\Users-\Documents\Projects\openzeppelin-starter-kit-tutorial\node_modules.bin\oz' compile
The filename, directory name, or volume label syntax is incorrect.
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
The text was updated successfully, but these errors were encountered: