npx oz deploy
errors out even with simplest of contracts with very little indication of what might be causing the problem. Has anyone experience this before using openzeppelin CLI? Oddly enough if I run the commend without any actual contracts in the contracts folder it will run successfully.
Ex: Without Factory.sol in the contracts folder
factory % npx oz deploy
No contracts found to compile.
? Choose the kind of deployment (Use arrow keys)
❯ regular standard non-upgradeable contract
upgradeable upgradeable instance using a delegating proxy (EIP1967)
minimal non-upgradeable minimal proxy instance (EIP1167)
`
Ex: With Factory.sol in the contracts folder
factory % npx oz deploy
✖ Compiling contracts with solc 0.8.11 (commit.d7f03943)
Cannot read properties of undefined (reading 'slice')
Code to reproduce
pragma solidity ^0.8.4;
contract Toyota {
Car[] public carsManufactured;
function manufacture() public {
carsManufactured.push(new Car());
}
}
contract Car {
}
Environment
VSCode Terminal
{
"devDependencies": {
"@openzeppelin/cli": "^2.8.2"
},
"dependencies": {
"@openzeppelin/contracts-ethereum-package": "^3.0.0"
}
}