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

[rush] ERROR: Internal Error: Unable to find dependency xxx with version xxx in shrinkwrap. #2418

Closed
orefalo opened this issue Jan 7, 2021 · 3 comments

Comments

@orefalo
Copy link

orefalo commented Jan 7, 2021

Issue:

running rush update --parge i get:

ERROR: Internal Error: Unable to find dependency graphql-transform-federation with version 2.2.0 in shrinkwrap.
You have encountered a software defect. Please consider reporting the issue to the maintainers of this application.

package.json

...
  "dependencies": {
    "@prisma/cli": "^2.14.0",
    "@prisma/client": "^2.14.0",
    "apollo-server": "^2.19.1",
    "@apollo/federation": "^0.20.7",
    "graphql": "15.4.0",
    "nexus": "^1.0.0",
    "nexus-plugin-prisma": "^0.28.0",
    "graphql-transform-federation": "2.2.0"
  },
...

rush.json

{
  "$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush.schema.json",

  "rushVersion": "5.35.2",

  "pnpmVersion": "4.14.4",

  "pnpmOptions": {
    "strictPeerDependencies": false
  },

  "nodeSupportedVersionRange": ">=14.13.0 <15.0.0",

  "projects": [
    {
      "packageName": "federation-accounts-prisma",
      "projectFolder": "./accounts_nexus_prisma"
    }
  ]
}

shrinkwrap.json

  "[email protected]": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==",
  "[email protected]": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==",
  "[email protected]_b1e19d07ac6e1e54a15de2b3c73ffb08": "sha512-BYyh5teDshQvh3mE/7xUSr9GnO8G8qC47MxXE5ELoA3htfkBGo8I1rXks8bowu644NMcIINJFJrIgn4tJVZ/uQ==",
  "[email protected]": "sha512-l0xWZpoPKpppFzMfvVyFmp9vLN7w/ZZJPefUicMCepfJeQ8sMcztloGYY9DfjVPo6tIUDzU5Hw3MUbIjj9AVVA==",
  "[email protected]": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",

As you can see above the version in the json is 2.2.0_b1e19d07ac6e1e54a15de2b3c73ffb08 which would explain why rush can't find it.

@orefalo
Copy link
Author

orefalo commented Jan 7, 2021

fyi, it works perfectly fine with yarn - so seems to be a pnpm issue

@apostolisms
Copy link
Contributor

Can you please provide a repro for this issue?

@D4N14L
Copy link
Member

D4N14L commented May 21, 2021

No repro provided, however this part of the code has been reworked since the issue was created with a goal of reducing cases like this. Closing out for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants