Skip to content

[Bug?]: Adding yarn sdks vscode fails after upgrade to eslint flat config #6210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
paulober opened this issue Apr 8, 2024 · 0 comments
Closed
1 task
Labels
bug Something isn't working

Comments

@paulober
Copy link

paulober commented Apr 8, 2024

Self-service

  • I'd be willing to implement a fix

Describe the bug

I upgraded to eslint flat config using "@eslint/js" and "eslint 9.0.0" and "typescript-eslint". Since then I get following error:

yarn dlx @yarnpkg/sdks vscode
➤ YN0000: · Yarn 4.1.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @yarnpkg/sdks@npm:3.1.0, and 104 more.
➤ YN0000: └ Completed in 30s 381ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 105 packages were added to the project (+ 2.87 MiB).
➤ YN0000: └ Completed in 11s 322ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: · Done in 41s 794ms

➤ YN0000: Cleaning up the existing SDK files...
➤ YN0001: Error: Your application tried to access color-convert, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.

Required package: color-convert
Required by: /Users/paulober/.yarn/berry/cache/ansi-styles-npm-4.3.0-245c7d42c7-10.zip/node_modules/ansi-styles/

Require stack:
- /Users/paulober/.yarn/berry/cache/ansi-styles-npm-4.3.0-245c7d42c7-10.zip/node_modules/ansi-styles/index.js
- /Users/paulober/.yarn/berry/cache/chalk-npm-3.0.0-e813208025-10.zip/node_modules/chalk/source/index.js
- /Users/paulober/.yarn/berry/cache/@yarnpkg-core-npm-4.0.3-6d77cb8f39-10.zip/node_modules/@yarnpkg/core/lib/formatUtils.js
- /Users/paulober/.yarn/berry/cache/@yarnpkg-core-npm-4.0.3-6d77cb8f39-10.zip/node_modules/@yarnpkg/core/lib/structUtils.js
- /Users/paulober/.yarn/berry/cache/@yarnpkg-core-npm-4.0.3-6d77cb8f39-10.zip/node_modules/@yarnpkg/core/lib/CorePlugin.js
- /Users/paulober/.yarn/berry/cache/@yarnpkg-core-npm-4.0.3-6d77cb8f39-10.zip/node_modules/@yarnpkg/core/lib/Configuration.js
- /Users/paulober/.yarn/berry/cache/@yarnpkg-core-npm-4.0.3-6d77cb8f39-10.zip/node_modules/@yarnpkg/core/lib/execUtils.js
- /Users/paulober/.yarn/berry/cache/@yarnpkg-core-npm-4.0.3-6d77cb8f39-10.zip/node_modules/@yarnpkg/core/lib/index.js
- /Users/paulober/.yarn/berry/cache/@yarnpkg-sdks-npm-3.1.0-a480fb9a26-10.zip/node_modules/@yarnpkg/sdks/lib/commands/SdkCommand.js
- /Users/paulober/.yarn/berry/cache/@yarnpkg-sdks-npm-3.1.0-a480fb9a26-10.zip/node_modules/@yarnpkg/sdks/lib/cli.js
    at require$$0.Module._resolveFilename (/Users/paulober/Developer/pico-vscode/.pnp.cjs:8705:13)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at require$$0.Module._load (/private/var/folders/f0/627xyzc94x5922p9t2dpny4w0000gn/T/xfs-d8afd8f6/dlx-94134/.pnp.cjs:6532:31)
    at require$$0.Module._load (/Users/paulober/Developer/pico-vscode/.pnp.cjs:8596:31)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at makeDynamicStyles (/Users/paulober/.yarn/berry/cache/ansi-styles-npm-4.3.0-245c7d42c7-10.zip/node_modules/ansi-styles/index.js:43:18)
    at /Users/paulober/.yarn/berry/cache/ansi-styles-npm-4.3.0-245c7d42c7-10.zip/node_modules/ansi-styles/index.js:150:49
    at Object.get [as ansi256] (/Users/paulober/.yarn/berry/cache/ansi-styles-npm-4.3.0-245c7d42c7-10.zip/node_modules/ansi-styles/index.js:24:18)
    at Chalk.<anonymous> (/Users/paulober/.yarn/berry/cache/chalk-npm-3.0.0-e813208025-10.zip/node_modules/chalk/source/index.js:82:49)

To reproduce

I'm not sure

Environment

System:
    OS: macOS 14.4.1
    CPU: (12) arm64 Apple M2 Pro
  Binaries:
    Node: 20.11.0 - /private/var/folders/f0/627xyzc94x5922p9t2dpny4w0000gn/T/xfs-1d48f596/node
    Yarn: 4.1.1 - /private/var/folders/f0/627xyzc94x5922p9t2dpny4w0000gn/T/xfs-1d48f596/yarn
    npm: 10.5.0 - /usr/local/bin/npm

Additional context

No response

@paulober paulober added the bug Something isn't working label Apr 8, 2024
@paulober paulober changed the title [Bug?]: [Bug?]: Adding yarn sdks vscode fails after upgrade to eslint flat config Apr 8, 2024
@paulober paulober closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant