yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.42k stars 1.11k forks source link

[Bug?]: yarn/doctor@4 can't resolve deps #5033

Open belgattitude opened 1 year ago

belgattitude commented 1 year ago

Self-service

Describe the bug

Seems there's a regression in @yarnpkg/doctor version 4rc. While v3 works, v4 outputs:

yarn dlx yarn dlx @yarnpkg/doctor@3.1.4 . # works
yarn dlx yarn dlx @yarnpkg/doctor@4.0.0-rc.27 . # don't

And outputs

➤ YN0000: ┌ /home/sebastien/github/nextjs-monorepo-example/package.json
➤ YN0000: │ Resolving cross-env@7.0.3 errored with cross-env@7.0.3 isn't supported by any available resolver
➤ YN0000: │ Resolving @changesets/changelog-github@0.4.7 errored with @changesets/changelog-github@0.4.7 isn't supported by any available resolver
➤ YN0000: │ Resolving @changesets/cli@2.25.2 errored with @changesets/cli@2.25.2 isn't supported by any available resolver
➤ YN0000: │ Resolving @commitlint/cli@17.2.0 errored with @commitlint/cli@17.2.0 isn't supported by any available resolver
etc..

To reproduce

You can see the output of the ci action here:

https://github.com/belgattitude/nextjs-monorepo-example/actions/runs/3404187570/jobs/5661229670

image

Environment

System:
    OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
    CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
  Binaries:
    Node: 16.17.0 - /tmp/xfs-19f2cfb4/node
    Yarn: 4.0.0-rc.27 - /tmp/xfs-19f2cfb4/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v16.17.0/bin/npm

Additional context

No response

SiarheiBobryk commented 6 months ago

Same issue for polyrepo as well.

$ yarn dlx @yarnpkg/doctor
➤ YN0000: · Yarn 4.1.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @yarnpkg/doctor@npm:4.0.1, @algolia/cache-browser-local-storage@npm:4.23.3, @algolia/cache-common@npm:4.23.3, and 227 more.
➤ YN0000: └ Completed in 1s 504ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: · Done in 1s 698ms

➤ YN0000: Found 1 package(s) to process
➤ YN0000: For a grand total of 4 file(s) to validate

➤ YN0000: ┌ /Users/siarheibobryk/Repositores/SiarheiBobryk.github.io/package.json
➤ YN0000: │ Resolving next@14.1.4 errored with next@14.1.4 isn't supported by any available resolver
➤ YN0000: │ Resolving react@18.2.0 errored with react@18.2.0 isn't supported by any available resolver
➤ YN0000: │ Resolving react-dom@18.2.0 errored with react-dom@18.2.0 isn't supported by any available resolver
➤ YN0000: │ Resolving @types/node@20.12.7 errored with @types/node@20.12.7 isn't supported by any available resolver
➤ YN0000: │ Resolving @types/react@18.2.77 errored with @types/react@18.2.77 isn't supported by any available resolver
➤ YN0000: │ Resolving @types/react-dom@18.2.25 errored with @types/react-dom@18.2.25 isn't supported by any available resolver
➤ YN0000: │ Resolving autoprefixer@10.4.19 errored with autoprefixer@10.4.19 isn't supported by any available resolver
➤ YN0000: │ Resolving eslint@8.57.0 errored with eslint@8.57.0 isn't supported by any available resolver
➤ YN0000: │ Resolving eslint-config-next@14.2.0 errored with eslint-config-next@14.2.0 isn't supported by any available resolver
➤ YN0000: │ Resolving postcss@8.4.38 errored with postcss@8.4.38 isn't supported by any available resolver
➤ YN0000: │ Resolving tailwindcss@3.4.3 errored with tailwindcss@3.4.3 isn't supported by any available resolver
➤ YN0000: │ Resolving typescript@5.4.5 errored with typescript@5.4.5 isn't supported by any available resolver
➤ YN0000: └ Completed
➤ YN0000: ⠙ --------------------------------------------------------------------------------

➤ YN0000: Done with warnings in 0s 36ms

Any updates on that?

tedw commented 2 months ago

Same, any update on this?

➤ YN0000: │ Resolving babel-loader@^9.1.3 errored with babel-loader@^9.1.3 isn't supported by any available resolver
➤ YN0000: │ Resolving eslint-plugin-import@^2.29.1 errored with eslint-plugin-import@^2.29.1 isn't supported by any available resolver
➤ YN0000: │ Resolving postcss@^8.4.41 errored with postcss@^8.4.41 isn't supported by any available resolver
➤ YN0000: │ Resolving postcss-import@^16.1.0 errored with postcss-import@^16.1.0 isn't supported by any available resolver
➤ YN0000: │ Resolving postcss-loader@^8.1.1 errored with postcss-loader@^8.1.1 isn't supported by any available resolver
➤ YN0000: │ Resolving postcss-nested@^6.2.0 errored with postcss-nested@^6.2.0 isn't supported by any available resolver
➤ YN0000: │ Resolving postcss-preset-env@^10.0.2 errored with postcss-preset-env@^10.0.2 isn't supported by any available resolver
➤ YN0000: │ Resolving postcss-pxtorem@^6.1.0 errored with postcss-pxtorem@^6.1.0 isn't supported by any available resolver
➤ YN0000: │ Resolving postcss-safe-parser@^7.0.0 errored with postcss-safe-parser@^7.0.0 isn't supported by any available resolver
➤ YN0000: │ Resolving remark@^15.0.1 errored with remark@^15.0.1 isn't supported by any available resolver
➤ YN0000: │ Resolving update-browserslist-db@^1.1.0 errored with update-browserslist-db@^1.1.0 isn't supported by any available resolver