You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two errors on build in a local environment.
Cannot find '../typechain' module at the first build in sometimes
Error log
...
@zkopru/contracts: No need to generate any newer typings.
@zkopru/client: ../contracts/src/zkopru.ts(30,8): error TS2307: Cannot find module '../typechain' or its corresponding type declarations.
@zkopru/client: ../contracts/src/index.ts(2,15): error TS2307: Cannot find module '../typechain' or its corresponding type declarations.
@zkopru/client: ../contracts/utils/deployer.ts(45,8): error TS2307: Cannot find module '../typechain' or its corresponding type declarations.
@zkopru/client: error Command failed with exit code 2.
@zkopru/client: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run build exited 2 in '@zkopru/client'
lerna ERR! yarn run build stdout:
$ tsc --build tsconfig.build.json && webpack-cli
../contracts/src/zkopru.ts(30,8): error TS2307: Cannot find module '../typechain' or its corresponding type declarations.
../contracts/src/index.ts(2,15): error TS2307: Cannot find module '../typechain' or its corresponding type declarations.
../contracts/utils/deployer.ts(45,8): error TS2307: Cannot find module '../typechain' or its corresponding type declarations.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
...
There are two errors on build in a local environment.
Cannot find '../typechain' module at the first build in sometimes
git clone https://github.com/zkopru-network/zkopru
cd zkopru && yarn && yarn build
yarn build
again, no more error message.Could not find some module when start cli app if not ran
yarn build:fresh
ever.Error log
Reproducing the error
git clone https://github.com/zkopru-network/zkopru
cd zkopru && yarn && yarn build
yarn build
againdocker-compose -f compose/docker-compose.dev.yml up testnet
packages/coordinator.dev.json
or replace by this coordinator.dev.json"ws://testnet:5000"
-->"ws://127.0.0.1:5000"
atwebsocket
"/proj/coordinator-wallet.db"
-->"coordinator-wallet.db"
atsqlite
node packages/cli/dist/apps/coordinator/cli.js --config packages/cli/coordinator.dev.json
Temporal Solution
Do use
yarn build:fresh
insteadyarn clean && yarn build
The text was updated successfully, but these errors were encountered: