question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GraphiQL fail with error: Module not found: Can't resolve 'graphql/validation/rules/KnownFragmentNames'

See original GitHub issue

I have a React app bootstrapped with create-react-app. On npm start fails with the error:

Module not found: Can't resolve 'graphql/validation/rules/KnownFragmentNames' in '/home/odinakachukwu/Documents/repos/apollo-client/node_modules/codemirror-graphql/node_modules/graphql-language-service-utils/esm'

I’m using => “graphiql”: “^0.17.5”

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
acaocommented, May 1, 2020

oh, oops my bad, forgot to ask, did you install graphql as a peer dependency?

0reactions
ODINAKACHUKWUcommented, May 1, 2020

Yea, just did that and it works fine now. Thanks so much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

GraphiQL fails with Module not found: Can't resolve 'graphql ...
In my new Create-React-App as soon as I include "graphiql": "^0.11.11" I see the following error .
Read more >
node.js - Error: Cannot find module 'graphql/validation/rules ...
For me simply running npm install -g graphql fixed the problem (I had already installed Apollo globally with npm install -g apollo )....
Read more >
Validation - GraphQL
Validation. By using the type system, it can be predetermined whether a GraphQL query is valid or not. This allows servers and clients...
Read more >
Codegen:generate error, cannot find module 'graphql ...
But today I was faced with an unexpected error. npx apollo ... error, cannot find module 'graphql/validation/rules/KnownArgumentNamesRule'.
Read more >
graphql - Go Packages
DefaultResolveFn If a resolve function is not given, then a default resolve behavior is used which takes the property of the source object...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found