{"action":"opened","issue":{"url":"https://api.github.com/repos/apollostack/apollo-client/issues/808","repository_url":"https://api.github.com/repos/apollostack/apollo-client","labels_url":"https://api.github.com/repos/apollostack/apollo-client/issues/808/labels{/name}","comments_url":"https://api.github.com/repos/apollostack/apollo-client/issues/808/comments","events_url":"https://api.github.com/repos/apollostack/apollo-client/issues/808/events","html_url":"https://github.com/apollostack/apollo-client/issues/808","id":183809667,"number":808,"title":"\"Uncaught TypeError: Cannot set property 'middleware' of undefined\" while following instructions for React","user":{"login":"BobWhitelock","id":7476523,"avatar_url":"https://avatars.githubusercontent.com/u/7476523?v=3","gravatar_id":"","url":"https://api.github.com/users/BobWhitelock","html_url":"https://github.com/BobWhitelock","followers_url":"https://api.github.com/users/BobWhitelock/followers","following_url":"https://api.github.com/users/BobWhitelock/following{/other_user}","gists_url":"https://api.github.com/users/BobWhitelock/gists{/gist_id}","starred_url":"https://api.github.com/users/BobWhitelock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BobWhitelock/subscriptions","organizations_url":"https://api.github.com/users/BobWhitelock/orgs","repos_url":"https://api.github.com/users/BobWhitelock/repos","events_url":"https://api.github.com/users/BobWhitelock/events{/privacy}","received_events_url":"https://api.github.com/users/BobWhitelock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-18T21:36:43Z","updated_at":"2016-10-18T21:36:43Z","closed_at":null,"body":"Hi - while following the instructions [here](http://dev.apollodata.com/react/initialization.html) I get `Uncaught TypeError: Cannot set property 'middleware' of undefined` when trying to create an `ApolloClient`. Here's the relevant code:\r\n\r\n```js\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport ApolloClient, {createNetworkInterface} from 'apollo-client';\r\nimport { ApolloProvider } from 'react-apollo';\r\nimport App from './App';\r\nimport './index.css';\r\n\r\nconst client = ApolloClient({\r\n  networkInterface: createNetworkInterface('https://api.github.com/graphql')\r\n});\r\n\r\nReactDOM.render(\r\n  <ApolloProvider client={client}>\r\n    <App />\r\n  </ApolloProvider>,\r\n  document.getElementById('root')\r\n);\r\n```\r\n\r\nI also saw [this](https://github.com/apollostack/apollo-client/issues/806) issue, which suggests I might need to do this instead:\r\n```js\r\nconst client = ApolloClient({\r\n  networkInterface: createNetworkInterface({uri: 'https://api.github.com/graphql'})\r\n});\r\n```\r\nThis gives exactly the same error however.\r\n\r\nUsing `apollo-client@0.4.21` with `react-apollo@0.5.11`. Any idea what I might be doing wrong?\r\n\r\nAlso here's a [repo](https://github.com/BobWhitelock/similar-repos/tree/apollo-client-issue) with the issue, if that helps. Thanks!"}}
{"actor":{"display_login":"BobWhitelock"}}