cannot find module error for apollo-cli 2.33.{6,7,8,9}
See original GitHub issueWhen I was trying to upgrade the formula to use the latest 2.33.6 release, it looks like the apollo command does not work anymore.
$ /usr/local/Cellar/apollo-cli/2.33.6/bin/apollo client:check
Error: Cannot find module
'graphql/validation/rules/KnownArgumentNamesRule'
Require stack:
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/@apollo/federation/dist/composition/validate/preNormali
zation/tagDirective.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/@apollo/federation/dist/composition/validate/preNormali
zation/index.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/@apollo/federation/dist/composition/validate/index.js
-
/usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo/n
ode_modules/@apollo/federation/dist/composition/composeAndValidate.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/@apollo/federation/dist/composition/index.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/@apollo/federation/dist/index.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/apollo-language-server/lib/providers/schema/file.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/apollo-language-server/lib/providers/schema/index.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/apollo-language-server/lib/project/base.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/apollo-language-server/lib/index.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/lib/Command.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/lib/commands/client/check.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/@oclif/config/lib/plugin.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/@oclif/config/lib/config.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/@oclif/config/lib/index.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/@oclif/command/lib/command.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/node_modules/@oclif/command/lib/index.js
- /usr/local/Cellar/apollo-cli/2.33.6/libexec/lib/node_modules/apollo
/bin/run
Code: MODULE_NOT_FOUND
relates to https://github.com/Homebrew/homebrew-core/pull/83152
Issue Analytics
- State:
- Created 2 years ago
- Reactions:60
- Comments:57
Top Results From Across the Web
Cannot find module @apollo/server after re-deploy in Heroku
It does seem odd that the errors are coming from the src directory. An installation of @apollo/server should really only be concerned with ......
Read more >Cannot find module 'graphql/validation/rules ... - Stack Overflow
I am trying to download a graphql schema with the command apollo client:download-schema --endpoint= ...
Read more >Can't resolve 'apollo-upload-client'. I'm on Next.js : r/graphql
Make sure that module is in your package.json and then run npm install.
Read more >apollo - npm
Command line tool for Apollo GraphQL. Latest version: 2.34.0, last published: ... Start using apollo in your project by running `npm i apollo`....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This issue is still a problem. It gave me 12-hours of pain. Nothing in this thread solved it for me although the information and context were very useful.
These pinned
devDependencies
worked for me:I had the same issue with our CI workflow and the downgrading didn’t help. But installing graphql helps
npm install -g graphql