OlympusDAO/olympus-contracts

`yarn run start` fails with "Error: ENOENT: no such file or directory"

AlexITC opened this issue · 1 comments

Hi,

When trying the commands shown in the README, I got the following error:

➜  olympus-contracts git:(deployment) ✗ yarn run start         
yarn run v1.22.15
$ yarn run typechain
$ TS_NODE_TRANSPILE_ONLY=true hardhat typechain
Generating typings for: 0 artifacts in dir: types for target: ethers-v5
Successfully generated 242 typings!
$ hardhat node --network hardhat
Nothing to compile
No need to generate any newer typings.
deploying "OlympusAuthority" (tx: 0xa202cf1880954a127e917909d8d7fb860ad5e70c95b00ff9c3c00df0c51e17fe)...Error HH604: Error running JSON-RPC server: ERROR processing /olympus-contracts/scripts/deploy/000_deploy_authority.ts:
Error: ENOENT: no such file or directory, open '/olympus-contracts/artifacts/build-info/957f20a5ad9a91e108198aa294b9cab6.json'

For more info go to https://hardhat.org/HH604 or run Hardhat with --show-stack-traces
error Command failed with exit code 1.

Effectively, as specified by the error message, 957f20a5ad9a91e108198aa294b9cab6.json doesn't exists, a weird detail if that deployments/localhost directory gets deleted by the script.

Any insights?

Thanks.

Apparently, I had some unwanted changes locally which caused the problem, in a clean repository, this worked for me.