vechain / x-app-template

Vechain VeBetterDAO X-App template
363 stars 313 forks source link

`contracts:solo-up` fails to start #24

Closed ifavo closed 1 week ago

ifavo commented 1 week ago

I have cloned the repository and run:

yarn install
yarn contracts:solo-up

As the README suggests.

It fails with a message:

@repo/contracts:solo-up: cache miss, executing c63372e8e844cd12
@repo/contracts:solo-up: Internal Error: @repo/contracts@workspace:.: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile

I can't identify the package that seems to be missing or what command is additionally required.

What do I need to do get the embedded solo-script started?


Here is the complete shell log:

$ yarn install
โžค YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker ๐Ÿ‘

โžค YN0000: โ”Œ Resolution step
โžค YN0061: โ”‚ crypto@npm:1.0.1 is deprecated: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
โžค YN0061: โ”‚ @nomiclabs/hardhat-etherscan@npm:3.1.8 is deprecated: The @nomiclabs/hardhat-etherscan package is deprecated, please use @nomicfoundation/hardhat-verify instead
โžค YN0061: โ”‚ ganache-cli@npm:6.12.2 is deprecated: ganache-cli is now ganache; visit https://trfl.io/g7 for details
โžค YN0061: โ”‚ @humanwhocodes/config-array@npm:0.11.14 is deprecated: Use @eslint/config-array instead
โžค YN0061: โ”‚ glob@npm:7.1.7 is deprecated: Glob versions prior to v9 are no longer supported
โžค YN0061: โ”‚ glob@npm:7.2.0 is deprecated: Glob versions prior to v9 are no longer supported
โžค YN0061: โ”‚ glob@npm:7.2.3 is deprecated: Glob versions prior to v9 are no longer supported
โžค YN0061: โ”‚ glob@npm:7.1.6 is deprecated: Glob versions prior to v9 are no longer supported
โžค YN0061: โ”‚ glob@npm:5.0.15 is deprecated: Glob versions prior to v9 are no longer supported
โžค YN0032: โ”‚ keccak@npm:3.0.4: Implicit dependencies on node-gyp are discouraged
โžค YN0061: โ”‚ uuid@npm:2.0.1 is deprecated: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
โžค YN0061: โ”‚ npmlog@npm:6.0.2 is deprecated: This package is no longer supported.
โžค YN0061: โ”‚ @types/bignumber.js@npm:5.0.0 is deprecated: This is a stub types definition for bignumber.js (https://github.com/MikeMcl/bignumber.js/). bignumber.js provides its own type definitions, so you don't need @types/bignumber.js installed!
โžค YN0061: โ”‚ rimraf@npm:3.0.2 is deprecated: Rimraf versions prior to v4 are no longer supported
โžค YN0061: โ”‚ superagent@npm:8.1.2 is deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net
โžค YN0061: โ”‚ glob@npm:8.1.0 is deprecated: Glob versions prior to v9 are no longer supported
โžค YN0061: โ”‚ inflight@npm:1.0.6 is deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
โžค YN0061: โ”‚ @humanwhocodes/object-schema@npm:2.0.3 is deprecated: Use @eslint/object-schema instead
โžค YN0032: โ”‚ fsevents@npm:2.3.3: Implicit dependencies on node-gyp are discouraged
โžค YN0032: โ”‚ node-addon-api@npm:2.0.2: Implicit dependencies on node-gyp are discouraged
โžค YN0061: โ”‚ are-we-there-yet@npm:3.0.1 is deprecated: This package is no longer supported.
โžค YN0061: โ”‚ gauge@npm:4.0.4 is deprecated: This package is no longer supported.
โžค YN0032: โ”‚ secp256k1@npm:4.0.3: Implicit dependencies on node-gyp are discouraged
โžค YN0061: โ”‚ ethereum-bloom-filters@npm:1.1.0 is deprecated: do not use this package use package versions above as this can miss some topics
โžค YN0061: โ”‚ ipfs-core-types@npm:0.8.4 is deprecated: js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details
โžค YN0061: โ”‚ ipfs-core-utils@npm:0.12.2 is deprecated: js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details
โžค YN0061: โ”‚ core-js@npm:2.6.12 is deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
โžค YN0061: โ”‚ @truffle/error@npm:0.1.1 is deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
โžค YN0061: โ”‚ @truffle/contract-schema@npm:3.4.16 is deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
โžค YN0032: โ”‚ evp_bytestokey@npm:1.0.3: Implicit dependencies on node-gyp are discouraged
โžค YN0061: โ”‚ @truffle/interface-adapter@npm:0.5.37 is deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
โžค YN0061: โ”‚ multiaddr-to-uri@npm:8.0.0 is deprecated: This module is deprecated, please upgrade to @multiformats/multiaddr-to-uri
โžค YN0061: โ”‚ @truffle/blockchain-utils@npm:0.1.9 is deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
โžค YN0061: โ”‚ multiaddr@npm:10.0.1 is deprecated: This module is deprecated, please upgrade to @multiformats/multiaddr
โžค YN0061: โ”‚ @truffle/debug-utils@npm:6.0.57 is deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
โžค YN0061: โ”‚ @npmcli/move-file@npm:2.0.1 is deprecated: This functionality has been moved to @npmcli/fs
โžค YN0061: โ”‚ z-schema@npm:5.0.6 is deprecated: has issues with node 14
โžค YN0061: โ”‚ @web3modal/html@npm:2.7.1 is deprecated: Please use new @web3modal/wagmi package
โžค YN0061: โ”‚ @web3modal/ethereum@npm:2.7.1 is deprecated: Please use new @web3modal/wagmi package
โžค YN0061: โ”‚ @ensdomains/ens@npm:0.4.5 is deprecated: Please use @ensdomains/ens-contracts
โžค YN0061: โ”‚ rimraf@npm:2.7.1 is deprecated: Rimraf versions prior to v4 are no longer supported
โžค YN0061: โ”‚ @ensdomains/resolver@npm:0.2.4 is deprecated: Please use @ensdomains/ens-contracts
โžค YN0061: โ”‚ @walletconnect/sign-client@npm:2.10.2 is deprecated: Reliability and performance greatly improved - please see https://github.com/WalletConnect/walletconnect-monorepo/releases
โžค YN0061: โ”‚ testrpc@npm:0.0.1 is deprecated: testrpc has been renamed to ganache-cli, please use this package from now on.
โžค YN0061: โ”‚ cids@npm:0.7.5 is deprecated: This module has been superseded by the multiformats module
โžค YN0061: โ”‚ multicodec@npm:0.5.7 is deprecated: This module has been superseded by the multiformats module
โžค YN0061: โ”‚ multicodec@npm:1.0.4 is deprecated: This module has been superseded by the multiformats module
โžค YN0061: โ”‚ multibase@npm:0.6.1 is deprecated: This module has been superseded by the multiformats module
โžค YN0061: โ”‚ multibase@npm:0.7.0 is deprecated: This module has been superseded by the multiformats module
โžค YN0061: โ”‚ @motionone/vue@npm:10.16.4 is deprecated: Motion One for Vue is deprecated. Use Oku Motion instead https://oku-ui.com/motion
โžค YN0061: โ”‚ @truffle/codec@npm:0.17.3 is deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
โžค YN0061: โ”‚ @walletconnect/sign-client@npm:2.11.0 is deprecated: Reliability and performance greatly improved - please see https://github.com/WalletConnect/walletconnect-monorepo/releases
โžค YN0032: โ”‚ bufferutil@npm:4.0.8: Implicit dependencies on node-gyp are discouraged
โžค YN0032: โ”‚ utf-8-validate@npm:5.0.10: Implicit dependencies on node-gyp are discouraged
โžค YN0061: โ”‚ mkdirp-promise@npm:5.0.1 is deprecated: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
โžค YN0061: โ”‚ @truffle/abi-utils@npm:1.0.3 is deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
โžค YN0061: โ”‚ @truffle/compile-common@npm:0.9.8 is deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
โžค YN0061: โ”‚ @truffle/error@npm:0.2.2 is deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
โžค YN0032: โ”‚ @parcel/watcher@npm:2.4.1: Implicit dependencies on node-gyp are discouraged
โžค YN0032: โ”‚ node-addon-api@npm:7.1.0: Implicit dependencies on node-gyp are discouraged
โžค YN0061: โ”‚ request@npm:2.88.2 is deprecated: request has been deprecated, see https://github.com/request/request/issues/3142
โžค YN0061: โ”‚ uuid@npm:3.4.0 is deprecated: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
โžค YN0061: โ”‚ har-validator@npm:5.1.5 is deprecated: this library is no longer supported
โžค YN0002: โ”‚ @nomiclabs/hardhat-truffle5@npm:2.0.7 [9fdbd] doesn't provide web3-core-helpers (pc0064), requested by @nomiclabs/truffle-contract
โžค YN0002: โ”‚ @nomiclabs/hardhat-truffle5@npm:2.0.7 [9fdbd] doesn't provide web3-core-promievent (p2a600), requested by @nomiclabs/truffle-contract
โžค YN0002: โ”‚ @nomiclabs/hardhat-truffle5@npm:2.0.7 [9fdbd] doesn't provide web3-eth-abi (p388ef), requested by @nomiclabs/truffle-contract
โžค YN0002: โ”‚ @nomiclabs/hardhat-truffle5@npm:2.0.7 [9fdbd] doesn't provide web3-utils (p28eb3), requested by @nomiclabs/truffle-contract
โžค YN0002: โ”‚ @repo/contracts@workspace:apps/contracts doesn't provide @types/node (pa3239), requested by @nomicfoundation/hardhat-toolbox
โžค YN0002: โ”‚ @repo/contracts@workspace:apps/contracts doesn't provide @types/node (p15518), requested by ts-node
โžค YN0002: โ”‚ @repo/contracts@workspace:apps/contracts doesn't provide react (p86287), requested by react-slot-counter
โžค YN0002: โ”‚ @repo/contracts@workspace:apps/contracts doesn't provide react-dom (pdf171), requested by react-slot-counter
โžค YN0002: โ”‚ @repo/contracts@workspace:apps/contracts doesn't provide web3 (pe15b1), requested by @nomiclabs/hardhat-truffle5
โžค YN0002: โ”‚ @repo/contracts@workspace:apps/contracts doesn't provide web3 (p0103a), requested by @nomiclabs/hardhat-web3
โžค YN0002: โ”‚ @vechain/dapp-kit-react@npm:1.0.12 doesn't provide @types/react (pc71bb), requested by @lit/react
โžค YN0002: โ”‚ dns-over-http-resolver@npm:1.2.3 doesn't provide node-fetch (p89343), requested by native-fetch
โžค YN0002: โ”‚ swagger-parser@npm:10.0.3 doesn't provide openapi-types (p54c62), requested by @apidevtools/swagger-parser
โžค YN0000: โ”‚ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
โžค YN0000: โ”” Completed in 17s 29ms
โžค YN0000: โ”Œ Fetch step
โžค YN0013: โ”‚ yn@npm:3.1.1 can't be found in the cache and will be fetched from the remote registry
โžค YN0013: โ”‚ yocto-queue@npm:0.1.0 can't be found in the cache and will be fetched from the remote registry
โžค YN0013: โ”‚ yocto-queue@npm:1.0.0 can't be found in the cache and will be fetched from the remote registry
โžค YN0013: โ”‚ z-schema@npm:5.0.6 can't be found in the cache and will be fetched from the remote registry
โžค YN0013: โ”‚ zustand@npm:4.5.2 can't be found in the cache and will be fetched from the remote registry
โžค YN0000: โ”” Completed in 19s 404ms
โžค YN0000: โ”Œ Link step
โžค YN0007: โ”‚ @swc/core@npm:1.5.7 [08a68] must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ keccak@npm:3.0.4 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ esbuild@npm:0.20.2 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ secp256k1@npm:4.0.3 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ web3-bzz@npm:1.10.4 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ core-js@npm:2.6.12 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ web3-bzz@npm:1.10.0 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ bufferutil@npm:4.0.8 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ es5-ext@npm:0.10.64 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ utf-8-validate@npm:5.0.10 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ protobufjs@npm:6.11.4 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ web3-shh@npm:1.10.4 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ web3-shh@npm:1.10.0 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ web3@npm:1.10.4 must be built because it never has been before or the last one failed
โžค YN0007: โ”‚ web3@npm:1.10.0 must be built because it never has been before or the last one failed
โžค YN0000: โ”” Completed in 24s 531ms
โžค YN0000: Done with warnings in 1m 2s

$ yarn contracts:solo-up
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                      โ”‚
โ”‚                  Update available v1.13.3 โ‰ซ v2.1.1                   โ”‚
โ”‚    Changelog: https://github.com/vercel/turbo/releases/tag/v2.1.1    โ”‚
โ”‚           Run "npx @turbo/codemod@latest update" to update           โ”‚
โ”‚                                                                      โ”‚
โ”‚        Follow @turborepo for updates: https://x.com/turborepo        โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
โ€ข Packages in scope: @repo/config-contract, @repo/contracts, @repo/typescript-config, @repo/utils, x-dapp-backend, x-dapp-frontend
โ€ข Running solo-up in 6 packages
โ€ข Remote caching disabled
@repo/contracts:solo-up: cache miss, executing c63372e8e844cd12
@repo/contracts:solo-up: Internal Error: @repo/contracts@workspace:.: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile
@repo/contracts:solo-up:     at V0.getCandidates (/Users/favo/.yarn/releases/yarn-3.6.1.cjs:435:5145)
@repo/contracts:solo-up:     at kf.getCandidates (/Users/favo/.yarn/releases/yarn-3.6.1.cjs:391:1264)
@repo/contracts:solo-up:     at /Users/favo/.yarn/releases/yarn-3.6.1.cjs:439:8033
@repo/contracts:solo-up:     at df (/Users/favo/.yarn/releases/yarn-3.6.1.cjs:390:11070)
@repo/contracts:solo-up:     at ge (/Users/favo/.yarn/releases/yarn-3.6.1.cjs:439:8013)
@repo/contracts:solo-up:     at async Promise.allSettled (index 0)
@repo/contracts:solo-up:     at async io (/Users/favo/.yarn/releases/yarn-3.6.1.cjs:390:10398)
@repo/contracts:solo-up:     at async /Users/favo/.yarn/releases/yarn-3.6.1.cjs:439:8545
@repo/contracts:solo-up:     at async ti.startProgressPromise (/Users/favo/.yarn/releases/yarn-3.6.1.cjs:390:47579)
@repo/contracts:solo-up:     at async je.resolveEverything (/Users/favo/.yarn/releases/yarn-3.6.1.cjs:439:6573)
@repo/contracts:solo-up: ERROR: command finished with error: command (/github/x-app-template/apps/contracts) /private/../xfs-a69741d7/yarn run solo-up exited (1)
@repo/contracts#solo-up: command (/github/x-app-template/apps/contracts) /private/../xfs-a69741d7/yarn run solo-up exited (1)

 Tasks:    0 successful, 1 total
Cached:    0 cached, 1 total
  Time:    665ms 
Failed:    @repo/contracts#solo-up

 ERROR  run failed: command  exited (1)
ifavo commented 1 week ago

Downgrading yarn to classic (v1) solved it, this is what worked for me:

yarn set version classic
yarn install
yarn contracts:solo-up
yarn contracts:deploy:solo
yarn dev