I’m unable to use apollo-boost and react-apollo in...
# prisma-whats-new
d
I’m unable to use apollo-boost and react-apollo in my app seemingly. Every time I
yarn add graphql apollo-boost react-apollo
, setup my client and
ApolloProvider
, and load the app, I get console errors galore like this:
Copy code
Error: Cannot find module "graphql/language/printer"
./node_modules/graphql-tag/src/index.js
Module not found: Error: Can't resolve 'graphql/language/parser' in '/Users/devan/client-dashboard/frontend/node_modules/graphql-tag/src'
Can anyone help me with this?
n
Try to add
graphql
explicitly as well:
yarn add graphql
d
Found out it was actually my webpack alias.