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?]: yarn import doesn't run if you don't have a yarn.lock file #6621

Open
1 task
ekasprzyk opened this issue Nov 28, 2024 · 0 comments
Open
1 task

[Bug?]: yarn import doesn't run if you don't have a yarn.lock file #6621

ekasprzyk opened this issue Nov 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ekasprzyk
Copy link

Self-service

  • I'd be willing to implement a fix

Describe the bug

yarn import doesn't run if you don't have a yarn.lock file.

yarn import
Internal Error: @nx-next/source@workspace:.: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile
    at Zb.getCandidates (/Users/ela/.volta/tools/image/yarn/4.0.0/bin/yarn.js:205:8149)
    at vd.getCandidates (/Users/ela/.volta/tools/image/yarn/4.0.0/bin/yarn.js:141:1311)
    at /Users/ela/.volta/tools/image/yarn/4.0.0/bin/yarn.js:210:8334
    at Wy (/Users/ela/.volta/tools/image/yarn/4.0.0/bin/yarn.js:140:53918)
    at be (/Users/ela/.volta/tools/image/yarn/4.0.0/bin/yarn.js:210:8314)
    at async Promise.allSettled (index 0)
    at async Uc (/Users/ela/.volta/tools/image/yarn/4.0.0/bin/yarn.js:140:53246)
    at async /Users/ela/.volta/tools/image/yarn/4.0.0/bin/yarn.js:210:9065
    at async Qi.startProgressPromise (/Users/ela/.volta/tools/image/yarn/4.0.0/bin/yarn.js:140:137286)
    at async St.resolveEverything (/Users/ela/.volta/tools/image/yarn/4.0.0/bin/yarn.js:210:7063)

To reproduce

Repro: run npx create-nx-workspace@latest --preset=next and create a new project.

cd and attempt to adopt the project into yarn 4.x

Environment

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 22.11.0 - /private/var/folders/v3/_r20j3ys1cq4zq90vkfgjq0r0000gn/T/xfs-3575bdc6/node
    Yarn: 4.5.3 - /private/var/folders/v3/_r20j3ys1cq4zq90vkfgjq0r0000gn/T/xfs-3575bdc6/yarn
    npm: 10.9.0 - ~/.volta/tools/image/node/22.11.0/bin/npm
  npmPackages:
    jest: ^29.7.0 => 29.7.0

Additional context

No response

@ekasprzyk ekasprzyk added the bug Something isn't working label Nov 28, 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