GraphiQL fail with error: Module not found: Can't resolve 'graphql/validation/rules/KnownFragmentNames'
See original GitHub issueI 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop 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
Top GitHub Comments
oh, oops my bad, forgot to ask, did you install
graphql
as a peer dependency?Yea, just did that and it works fine now. Thanks so much!