Unable to resolve "graphql/language/visitor" from "node_modules/apollo-utilities/lib/bundle.umd.js"
See original GitHub issueIntended 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:
- Created 5 years ago
- Reactions:27
- Comments:17 (3 by maintainers)
Top GitHub Comments
apollo-utilities
v1.1.3 has a dependency ongraphql
which is not mentioned in its package.json but it is mentioned as a peerDependency forApollo-client
to resolve it, I ran:npm install -s graphql
hey i still got error, even after installing
graphql
viayarn add graphql