React-apollo: Uncaught TypeError: Cannot set property 'middleware' of undefined

Created on 16 Sep 2017  路  6Comments  路  Source: apollographql/react-apollo

Intended outcome:
Connect my existing Redux project to use Apollo Client and connect to the PostgraphQL backend

Actual outcome:
image

How to reproduce the issue:
After doing an npm i the following are the commands to run the servers
For FE dev:
npm run build:dev
For Prod:
npm run build:prod
For BE:
npm run run:nodemon

Version

Repository
https://gitlab.com/debanjanbasu/trade-box

Most helpful comment

i'm getting this error when i add the <ApolloProvider> component at all... i haven't even made a query yet!

All 6 comments

Everything works fine if I remove
image

@graphql from line 47.

I've tried every other method. By disabling the es6 decorations, etc. All in vain.

Same issue. Please advise.

import gql from 'react-apollo';

const SOME_QUERY = gql`
  query foo {
    bar(id:12345) {
      id
      name
    }
  }
`;

gql is causing this error for me. Removing stops the error
react-apollo v1.4.15

Update: works fine if I use apollo-client and graphql-tag

i'm getting this error when i add the <ApolloProvider> component at all... i haven't even made a query yet!

This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo!

This issue has been automatically closed because it has not had recent activity after being marked as no recent activyt. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to React Apollo!

Was this page helpful?
0 / 5 - 0 ratings