{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/redux/issues/238","labels_url":"https://api.github.com/repos/gaearon/redux/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/redux/issues/238/comments","events_url":"https://api.github.com/repos/gaearon/redux/issues/238/events","html_url":"https://github.com/gaearon/redux/issues/238","id":94068804,"number":238,"title":"Failed Context Types: Required context `redux` was not specified in `Connector`","user":{"login":"deowk","id":5707616,"avatar_url":"https://avatars.githubusercontent.com/u/5707616?v=3","gravatar_id":"","url":"https://api.github.com/users/deowk","html_url":"https://github.com/deowk","followers_url":"https://api.github.com/users/deowk/followers","following_url":"https://api.github.com/users/deowk/following{/other_user}","gists_url":"https://api.github.com/users/deowk/gists{/gist_id}","starred_url":"https://api.github.com/users/deowk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deowk/subscriptions","organizations_url":"https://api.github.com/users/deowk/orgs","repos_url":"https://api.github.com/users/deowk/repos","events_url":"https://api.github.com/users/deowk/events{/privacy}","received_events_url":"https://api.github.com/users/deowk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-09T14:49:01Z","updated_at":"2015-07-10T11:32:00Z","closed_at":"2015-07-10T11:25:16Z","body":"Hi,\r\n\r\nI am getting the following error \r\n\r\n```\r\nWarning: Failed Context Types: Required context `redux` was not specified in `Connector`. Check the render method of `Layout`.\r\nTypeError: Cannot read property 'subscribe' of undefined\r\n    at new Connector (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/redux/lib/components/createConnector.js:43:39)\r\n    at ReactCompositeComponentMixin.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactCompositeComponent.js:135:16)\r\n    at wrapper [as mountComponent] (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactPerf.js:70:21)\r\n    at Object.ReactReconciler.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactReconciler.js:38:35)\r\n    at ReactDOMComponent.ReactMultiChild.Mixin.mountChildren (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactMultiChild.js:192:44)\r\n    at ReactDOMComponent.Mixin._createContentMarkup (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactDOMComponent.js:289:32)\r\n    at ReactDOMComponent.Mixin.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactDOMComponent.js:199:12)\r\n    at Object.ReactReconciler.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactReconciler.js:38:35)\r\n    at ReactCompositeComponentMixin.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactCompositeComponent.js:247:34)\r\n    at wrapper [as mountComponent] (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactPerf.js:70:21)\r\n    at Object.ReactReconciler.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactReconciler.js:38:35)\r\n    at ReactDOMComponent.ReactMultiChild.Mixin.mountChildren (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactMultiChild.js:192:44)\r\n    at ReactDOMComponent.Mixin._createContentMarkup (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactDOMComponent.js:289:32)\r\n    at ReactDOMComponent.Mixin.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactDOMComponent.js:199:12)\r\n    at Object.ReactReconciler.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactReconciler.js:38:35)\r\n    at ReactCompositeComponentMixin.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactCompositeComponent.js:247:34)\r\n    at wrapper [as mountComponent] (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactPerf.js:70:21)\r\n    at Object.ReactReconciler.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactReconciler.js:38:35)\r\n    at ReactDOMComponent.ReactMultiChild.Mixin.mountChildren (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactMultiChild.js:192:44)\r\n    at ReactDOMComponent.Mixin._createContentMarkup (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactDOMComponent.js:289:32)\r\n    at ReactDOMComponent.Mixin.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactDOMComponent.js:199:12)\r\n    at Object.ReactReconciler.mountComponent (/Users/deowardkotze/grad_connection/cc/campus/src/react-client/node_modules/react/lib/ReactReconciler.js:38:35)\r\n```\r\n\r\nThe strange thing is that everything in the Layout component is working and the state is changing when I fire actions as expected. This is how layout component looks.\r\n\r\n```\r\n\"use strict\";\r\n\r\nvar React = require(\"react\");\r\nvar Navigation = require(\"./navigation.js\");\r\nvar Footer = require(\"./footer.js\");\r\nimport * as LoginActions from \"../actions/LoginActions\";\r\nimport { bindActionCreators } from \"redux\";\r\nimport { Connector } from \"redux/react\";\r\n\r\nfunction select(state) {\r\n  return {userLoggedIn: state.loginstore.userLoggedIn};\r\n}\r\n\r\nexport default class Layout extends React.Component {\r\n\r\n  render() {\r\n    return (\r\n      <html>\r\n        <head>\r\n         ..........\r\n        </head>\r\n        <body>\r\n            ..........\r\n            <Connector select={select}>\r\n              {({userLoggedIn, dispatch}) =>\r\n                <Navigation userLoggedIn={userLoggedIn} {...bindActionCreators(LoginActions, dispatch)}/>\r\n              }\r\n            </Connector>\r\n\r\n            {this.props.children}\r\n\r\n            <Footer />\r\n        </body>\r\n        <script src=\"/public/client.min.js\"></script>\r\n      </html>\r\n    );\r\n  }\r\n}\r\n```\r\n\r\nand I am including redux like this\r\n\r\n```\r\nexport default class App extends React.Component {\r\n  render() {\r\n    const redux = createRedux(Client, this.props.initialState);\r\n    return (\r\n        <Provider redux={redux}>\r\n        {() =>\r\n          <Layout {...this.props} >\r\n            <Router.RouteHandler {...this.props} />\r\n          </Layout>\r\n        }\r\n        </Provider>\r\n    );\r\n  }\r\n}\r\n```\r\n\r\nWhy would I be getting this error even though everything seems to be working fine?"},"comment":{"url":"https://api.github.com/repos/gaearon/redux/issues/comments/120389696","html_url":"https://github.com/gaearon/redux/issues/238#issuecomment-120389696","issue_url":"https://api.github.com/repos/gaearon/redux/issues/238","id":120389696,"user":{"login":"emmenko","id":1110551,"avatar_url":"https://avatars.githubusercontent.com/u/1110551?v=3","gravatar_id":"","url":"https://api.github.com/users/emmenko","html_url":"https://github.com/emmenko","followers_url":"https://api.github.com/users/emmenko/followers","following_url":"https://api.github.com/users/emmenko/following{/other_user}","gists_url":"https://api.github.com/users/emmenko/gists{/gist_id}","starred_url":"https://api.github.com/users/emmenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmenko/subscriptions","organizations_url":"https://api.github.com/users/emmenko/orgs","repos_url":"https://api.github.com/users/emmenko/repos","events_url":"https://api.github.com/users/emmenko/events{/privacy}","received_events_url":"https://api.github.com/users/emmenko/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T11:32:00Z","updated_at":"2015-07-10T11:32:00Z","body":"@deowk sorry, been busy yesterday. Haven't used `react-engine` before, so I can't tell exactly what the problems was. Glad you managed to solve it."}}