Skip to content
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

[Bug?]: YN0001: TypeError: Cannot destructure property 'deprecated' of 'fe.versions[ue]' as it is undefined. #6301

Open
1 task done
artola opened this issue May 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@artola
Copy link

artola commented May 21, 2024

Self-service

  • I'd be willing to implement a fix

Describe the bug

On CI this error happens from time to time.

YN0001: TypeError: Cannot destructure property 'deprecated' of 'fe.versions[ue]' as it is undefined.
  at /agent/_work/1/s/.yarn/releases/yarn-4.2.2.cjs:680:5858 at Object.ol (/agent/_work/1/s/.yarn/releases/yarn-4.2.2.cjs:140:53068)
  at /agent/_work/1/s/.yarn/releases/yarn-4.2.2.cjs:680:5822 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  at async Promise.all (index 1252) at async /agent/_work/1/s/.yarn/releases/yarn-4.2.2.cjs:680:5683
  at async fA.start (/agent/_work/1/s/.yarn/releases/yarn-4.2.2.cjs:199:6859)
  at async q0.execute (/agent/_work/1/s/.yarn/releases/yarn-4.2.2.cjs:680:5456) at async q0.validateAndExecute (/agent/_work/1/s/.yarn/releases/yarn-4.2.2.cjs:94:787)
  at async as.run (/agent/_work/1/s/.yarn/releases/yarn-4.2.2.cjs:98:3250)

➤ Errors happened when preparing the environment required to run this command.
➤ This might be caused by packages being missing from the lockfile, in which case running "yarn install" might help.

The error points to:

const {deprecated} = registryData.versions[version];

To reproduce

yarn npm audit --all --recursive

Environment

System:
    OS: linux
    CPU: 
  Binaries:
    Node: 20.13.1
    Yarn: 4.2.2

Additional context

I do not know why the error happens sometimes, while most of the time works fine (race condition?).
Not reproducible on local machine.

@artola artola added the bug Something isn't working label May 21, 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