3
votes

I started with a basic exponent starter project and followed their tutorial to add an apollo client and ended up with a bunch of peer depenendency issues. How can I fix it - do I need to pin certain versions of apollo client? What is the conflict?

adding the apollo client references as per this guide: https://docs.getexponent.com/versions/v12.0.0/guides/using-apollo.html

Here's the single peer dependency error with the exponent starter project from the outset (do I need to fix that somehow - exponent is pinned to react 15.3.2)?

$ npm ls --depth 0

[email protected] /Users/jinteki/Projects/vanilla-exponent
├── @exponent/[email protected]
├── @exponent/[email protected]
├── @exponent/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] (git+https://github.com/exponentjs/react-native.git#e708008e450ce254e715b7034b6fd63346974c6c)

npm ERR! peer dep missing: react@^15.4.1, required by [email protected]

And all the warnings after I run npm install apollo-client react-apollo --save

$ npm ls --depth 0

[email protected] /Users/jinteki/Projects/vanilla-exponent
├── @exponent/[email protected]
├── @exponent/[email protected]
├── @exponent/[email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY [email protected] || 15.* || ^15.0.0
├── [email protected] invalid
├── [email protected] extraneous
└── [email protected] extraneous

npm ERR! peer dep missing: apollo-client@^0.6.0, required by [email protected]
npm ERR! peer dep missing: [email protected] || 15.* || ^15.0.0, required by [email protected]
npm ERR! invalid: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/react-native
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/absolute-path
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/art
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/babel-plugin-external-helpers
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/babel-polyfill
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/babel-preset-es2015-node
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/babel-preset-fbjs
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/base64-js
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/connect
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/denodeify
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/event-target-shim
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/fbjs-scripts
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/fs-extra
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/image-size
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/immutable
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/inquirer
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/jest-haste-map
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/joi
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/json5
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/jstransform
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/lodash
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/mime
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/mime-types
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/module-deps
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/npmlog
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/opn
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/plist
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/progress
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/rebound
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/regenerator-runtime
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/stacktrace-parser
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/temp
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/whatwg-fetch
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/ws
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/xcode
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/xmldoc
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/yargs
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/yeoman-environment
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/yeoman-generator
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/react-native-maps
npm ERR! extraneous: [email protected] /Users/jinteki/Projects/vanilla-exponent/node_modules/react-native-svg
npm ERR! missing: react-native-maps@git+https://github.com/exponent/react-native-maps.git#12853f0, required by [email protected]
npm ERR! missing: react-native-svg@git+https://github.com/exponent/react-native-svg.git#51ff90cc, required by [email protected]
npm ERR! missing: jest-resolve@git+https://github.com/exponentjs/jest-resolve.git, required by [email protected]
npm ERR! peer dep missing: react@^15.4.2, required by [email protected]
1

1 Answers

4
votes

upgrading to the latest NPM version (4.1) fixed this for me (can be done with npm install -g npm)