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.

Unable to resolve "graphql/language/visitor" from "node_modules/apollo-utilities/lib/bundle.umd.js"

See original GitHub issue

Intended outcome: Trying to use Apollo client with React native or Vue native using code from this recipe page https://www.apollographql.com/docs/react/recipes/react-native.html

Running the iOS simulator expect to see an app or error messages directly related to my app.

Actual outcome: When running the iOS simulator I get the message:

Unable to resolve "graphql/language/visitor" from "node_modules/apollo-utilities/lib/bundle.umd.js"

Extra message is module does not exist in haste map

How to reproduce the issue: Create a fresh React or vue native instance and try using the apollo client for a simple query

Versions System: OS: macOS High Sierra 10.13.6 Binaries: Node: 10.12.0 - /usr/local/bin/node Yarn: 1.10.1 - /usr/local/bin/yarn npm: 6.8.0 - /usr/local/bin/npm Browsers: Chrome: 72.0.3626.119 Safari: 12.0.3 npmPackages: apollo-client: ^2.4.13 => 2.4.13 react-apollo: ^2.4.1 => 2.4.1

Issue Analytics

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

github_iconTop GitHub Comments

134reactions
dysonprocommented, Feb 26, 2019

apollo-utilities v1.1.3 has a dependency on graphql which is not mentioned in its package.json but it is mentioned as a peerDependency for Apollo-client to resolve it, I ran: npm install -s graphql

31reactions
oknoorapcommented, Aug 18, 2019

hey i still got error, even after installing graphql via yarn add graphql

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve module 'module://graphql/language/parser.js'
In my case I install graphql to made this error go away. Also I used graphql-request package which by default do not install...
Read more >
Lift-off 1: Apollo Client setup - Help
I'm trying to install to /client npm install graphql @apollo/client But I get error npm ERR! ... ERESOLVE could not resolve npm ERR!...
Read more >
error: cannot find module 'graphql/language/parser' - You.com
Unable to resolve module 'module://graphql/language/parser.js'. Stackoverflow.com > . ... This issue is comes when you use import gql from 'graphql-tag'.
Read more >
apollo-client Unable to resolve "src/graphql/language/visitor" from ...
apollo-client Unable to resolve "src/graphql/language/visitor" from "node_modules/apollo-client/bundle.umd.js" - TypeScript. I'm trying to use Expo (sdk 32) ...
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