anza-xyz / wallet-adapter

Modular TypeScript wallet adapters and components for Solana applications.
https://anza-xyz.github.io/wallet-adapter/
Apache License 2.0
1.58k stars 958 forks source link

Error: expected workspace package to exist for \"@typescript-eslint/visitor-keys\ #238

Closed francochau closed 2 years ago

francochau commented 2 years ago

Describe the bug This error pops up when i tries to yarn install @solana/wallet-adapter-base expected workspace package to exist for \"@typescript-eslint/visitor-keys\

To Reproduce I used the nextjs starter template

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Full error code:

info "@next/swc-darwin-arm64@11.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-linux-x64-gnu@11.1.3: The platform "darwin" is incompatible with this module.
info "@next/swc-linux-x64-gnu@11.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/swc-win32-x64-msvc@11.1.3: The platform "darwin" is incompatible with this module.
info "@next/swc-win32-x64-msvc@11.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-android-arm64@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-android-arm64@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-android-arm64@0.13.8: The CPU architecture "x64" is incompatible with this module.
info esbuild-darwin-arm64@0.13.8: The CPU architecture "x64" is incompatible with this module.
info "esbuild-darwin-arm64@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-64@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-freebsd-64@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-arm64@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-freebsd-arm64@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-arm64@0.13.8: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-32@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-linux-32@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-32@0.13.8: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-64@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-linux-64@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-linux-arm@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm@0.13.8: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-arm64@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-linux-arm64@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm64@0.13.8: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-mips64le@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-linux-mips64le@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-mips64le@0.13.8: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-ppc64le@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-linux-ppc64le@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-ppc64le@0.13.8: The CPU architecture "x64" is incompatible with this module.
info esbuild-netbsd-64@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-netbsd-64@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-openbsd-64@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-openbsd-64@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-sunos-64@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-sunos-64@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-windows-32@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-windows-32@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-windows-32@0.13.8: The CPU architecture "x64" is incompatible with this module.
info esbuild-windows-64@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-windows-64@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-windows-arm64@0.13.8: The platform "darwin" is incompatible with this module.
info "esbuild-windows-arm64@0.13.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-windows-arm64@0.13.8: The CPU architecture "x64" is incompatible with this module.
info esbuild-android-arm64@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-android-arm64@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-android-arm64@0.13.15: The CPU architecture "x64" is incompatible with this module.
info esbuild-darwin-arm64@0.13.15: The CPU architecture "x64" is incompatible with this module.
info "esbuild-darwin-arm64@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-64@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-freebsd-64@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-arm64@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-freebsd-arm64@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-arm64@0.13.15: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-32@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-linux-32@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-32@0.13.15: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-64@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-linux-64@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-linux-arm@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm@0.13.15: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-arm64@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-linux-arm64@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm64@0.13.15: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-mips64le@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-linux-mips64le@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-mips64le@0.13.15: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-ppc64le@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-linux-ppc64le@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-ppc64le@0.13.15: The CPU architecture "x64" is incompatible with this module.
info esbuild-netbsd-64@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-netbsd-64@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-openbsd-64@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-openbsd-64@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-sunos-64@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-sunos-64@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-windows-32@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-windows-32@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-windows-32@0.13.15: The CPU architecture "x64" is incompatible with this module.
info esbuild-windows-64@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-windows-64@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-windows-arm64@0.13.15: The platform "darwin" is incompatible with this module.
info "esbuild-windows-arm64@0.13.15" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-windows-arm64@0.13.15: The CPU architecture "x64" is incompatible with this module.
[3/4] 🔗  Linking dependencies...
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-angular > @angular/core@12.2.15" has unmet peer dependency "zone.js@~0.11.4".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-angular > @angular-devkit/build-angular@12.2.14" has incorrect peer dependency "typescript@~4.2.3 || ~4.3.2".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-angular > @angular/compiler-cli@12.2.15" has incorrect peer dependency "typescript@>=4.2.3 <4.4".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-angular > ng-packagr@12.2.6" has incorrect peer dependency "typescript@~4.2.3 || ~4.3.2".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-material-ui-starter > eslint-config-react-app@6.0.0" has incorrect peer dependency "@typescript-eslint/eslint-plugin@^4.0.0".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-material-ui-starter > eslint-config-react-app@6.0.0" has incorrect peer dependency "@typescript-eslint/parser@^4.0.0".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-material-ui-starter > eslint-config-react-app@6.0.0" has unmet peer dependency "babel-eslint@^10.0.0".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-material-ui-starter > eslint-config-react-app@6.0.0" has unmet peer dependency "eslint-plugin-flowtype@^5.2.0".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-material-ui-starter > eslint-config-react-app@6.0.0" has unmet peer dependency "eslint-plugin-import@^2.22.0".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-material-ui-starter > eslint-config-react-app@6.0.0" has unmet peer dependency "eslint-plugin-jsx-a11y@^6.3.1".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-material-ui-starter > eslint-config-react-app@6.0.0" has unmet peer dependency "eslint-plugin-react@^7.20.3".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-material-ui-starter > eslint-config-react-app@6.0.0" has unmet peer dependency "eslint-plugin-react-hooks@^4.0.8".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-torus > @toruslabs/solana-embed@0.0.7" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-angular > @angular-devkit/build-angular > @ngtools/webpack@12.2.14" has incorrect peer dependency "typescript@~4.2.3 || ~4.3.2".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-example > next-plugin-antd-less > less-loader@7.3.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-example > next-plugin-antd-less > null-loader@4.0.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-material-ui-starter > @emotion/styled > @emotion/babel-plugin@11.7.2" has unmet peer dependency "@babel/core@^7.0.0".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-react-ui-starter > react-hot-toast > goober@2.1.1" has unmet peer dependency "csstype@^2.6.2".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-torus > @toruslabs/solana-embed > @toruslabs/base-controllers@1.4.2" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-torus > @toruslabs/solana-embed > @toruslabs/http-helpers@1.4.0" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-torus > @toruslabs/solana-embed > @toruslabs/openlogin-jrpc@1.3.3" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-example > next > styled-jsx > @babel/plugin-syntax-jsx@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-material-ui-starter > @emotion/styled > @emotion/babel-plugin > @babel/plugin-syntax-jsx@7.16.7" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-torus > @toruslabs/solana-embed > @toruslabs/base-controllers > @toruslabs/http-helpers@2.1.4" has unmet peer dependency "@babel/runtime@7.x".
warning "workspace-aggregator-1164afca-c77b-4511-8fc9-1c930427fbd1 > @solana/wallet-adapter-torus > @toruslabs/solana-embed > @toruslabs/openlogin-jrpc > @toruslabs/openlogin-utils@1.3.3" has unmet peer dependency "@babel/runtime@7.x".
error An unexpected error occurred: "expected workspace package to exist for \"@typescript-eslint/visitor-keys\"".
info If you think this is a bug, please open a bug report with the information provided in "/Users/franco/Documents/Releap/wallet-adapter/packages/starter/nextjs-starter/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add
jordaaash commented 2 years ago

Can you provide a link to a repo with a reproduction of the issue? I've tested the nextjs-starter project, so it's hard to tell what's going on here.

francochau commented 2 years ago

@jordansexton problem was fixed by changing the yarn policies version to 1.19. but encountered same issue as https://github.com/solana-labs/wallet-adapter/issues/153 afterwards I will just close this issue first. Thanks

gsben commented 1 year ago

if your project has lerna and used it, you can use lerna to install package instead of yarn. such as: lerna add xxx(package name) --scope=your subproject name(if exist subproject)