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

apollo client:download-schema: Cannot find module 'graphql/validation/rules/KnownArgumentNamesRule' #2423

Closed
kyh opened this issue Aug 20, 2021 · 1 comment

Comments

@kyh
Copy link

kyh commented Aug 20, 2021

Intended outcome:
apollo client:download-schema runs without errors

Actual outcome:
After updating running npm update on my project I run into this issue

> apollo client:download-schema

    Error: Cannot find module 'graphql/validation/rules/KnownArgumentNamesRule'
    Require stack:
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/@apollo/federation/dist/com
    position/validate/preNormalization/tagDirective.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/@apollo/federation/dist/com
    position/validate/preNormalization/index.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/@apollo/federation/dist/com
    position/validate/index.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/@apollo/federation/dist/com
    position/composeAndValidate.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/@apollo/federation/dist/com
    position/index.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/@apollo/federation/dist/ind
    ex.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/apollo-language-server/lib/
    providers/schema/file.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/apollo-language-server/lib/
    providers/schema/index.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/apollo-language-server/lib/
    project/base.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/apollo-language-server/lib/
    index.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/apollo/lib/Command.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/apollo/lib/commands/client/
    download-schema.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/@oclif/config/lib/plugin.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/@oclif/config/lib/config.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/@oclif/config/lib/index.js
    -
    /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/@oclif/command/lib/command.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/@oclif/command/lib/index.js
    - /Users/kaiyuhsu/Documents/projects/playhouse/app/web/node_modules/apollo/bin/run
    Code: MODULE_NOT_FOUND

How to reproduce the issue:
Looks like part of npm update, @apollo/federation went from 0.25.0 -> 0.27.0. May be related to apollographql/federation#904

Versions

"apollo": {
      "version": "2.33.6"
}
@kyh
Copy link
Author

kyh commented Aug 20, 2021

Closing since it's dup of #2415

@kyh kyh closed this as completed Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant