Closed livingrock7 closed 3 years ago
yarn test works fine.
yarn start yarn run v1.22.10 error Command "start" not found. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
It builds now. Closing this issue Thanks!
I am just playing around this project, further gas optimizations and flashbots. I am new with ethers-hardhat-typechain stack While running npm build I am running into below type errors. Can you please suggest how to solve these issues
volta is installed
before building
volta pin node@14.16.1 node -v v14.16.1
tsc -v
Volta error: Could not locate executable
tsc
in your project.Please ensure that all project dependencies are installed with
npm install
oryarn install
volta pin yarn
Build
yarn
yarn install v1.22.10 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@2.3.2: The platform "linux" is incompatible with this module. info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. info fsevents@2.1.3: The platform "linux" is incompatible with this module. info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-js > @flashbots/ethers-provider-bundle@0.3.1" has incorrect peer dependency "ethers@^5.1.4". warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-frontend > web3-react@5.0.5" has incorrect peer dependency "ethers@^4". warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-frontend > web3-react@5.0.5" has incorrect peer dependency "react@^16.8". warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-frontend > web3-react@5.0.5" has incorrect peer dependency "react-dom@^16.8". warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-contracts > hardhat-gas-reporter > eth-gas-reporter@0.2.22" has unmet peer dependency "@codechecks/client@^0.1.0". warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-frontend > web3-react > @0x/subproviders > eth-lightwallet > bitcore-mnemonic@1.7.0" has incorrect peer dependency "bitcore-lib@^0.16.0". [############################################################################################################################################################---------------------------------] 53463/64956^[4/4] Building fresh packages... [8/16] ⠈ keccak [-/16] ⠈ waiting... [-/16] ⠈ waiting... [15/16] ⠈ node-hid
$ husky install && lerna run prepare husky - Git hooks installed lerna notice cli v4.0.0 lerna info versioning independent lerna info Executing command in 1 package: "yarn run prepare" @scopelift/zeneth-js: yarn run v1.22.10 @scopelift/zeneth-js: $ yarn build @scopelift/zeneth-js: $ tsc --build @scopelift/zeneth-js: Done in 0.70s. lerna success run Ran npm script 'prepare' in 1 package in 1.1s: lerna success - @scopelift/zeneth-js Done in 226.56s.
tsc -v Version 4.2.4
yarn build
yarn run v1.22.10 $ lerna run build lerna notice cli v4.0.0 lerna info versioning independent lerna info Executing command in 3 packages: "yarn run build" @scopelift/zeneth-contracts: $ hardhat compile @scopelift/zeneth-js: $ tsc --build @scopelift/zeneth-frontend: $ next build @scopelift/zeneth-frontend: info - Using webpack 5. Reason: future.webpack5 option enabled https://nextjs.org/docs/messages/webpack5 @scopelift/zeneth-frontend: info - Checking validity of types... @scopelift/zeneth-contracts: Solidity 0.8.4 is not fully supported yet. You can still use Hardhat, but some features, like stack traces, might not work correctly. @scopelift/zeneth-contracts: Learn more at https://hardhat.org/reference/solidity-support" @scopelift/zeneth-contracts: Nothing to compile @scopelift/zeneth-frontend: Failed to compile. @scopelift/zeneth-frontend: ./src/components/Connection.tsx:37:28 @scopelift/zeneth-frontend: Type error: Binding element 'props' implicitly has an 'any' type. @scopelift/zeneth-frontend: 35 | } @scopelift/zeneth-frontend: 36 | @scopelift/zeneth-frontend: > 37 | const ConnectionModal = ({ props }) => { @scopelift/zeneth-frontend: | ^ @scopelift/zeneth-frontend: 38 | const { clearModal } = useContext(ModalContext); @scopelift/zeneth-frontend: 39 | const { connector, chainId, activate, deactivate, error } = useWeb3React<Web3Provider>(); @scopelift/zeneth-frontend: 40 | const { activatingConnector, setActivatingConnector, triedEager } = props; @scopelift/zeneth-contracts: Creating Typechain artifacts in directory typechain for target ethers-v5 @scopelift/zeneth-frontend: error Command failed with exit code 1. @scopelift/zeneth-frontend: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. lerna ERR! yarn run build exited 1 in '@scopelift/zeneth-frontend' lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.