{"action":"closed","issue":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/126","repository_url":"https://api.github.com/repos/facebookincubator/create-react-app","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/126/comments","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/126/events","html_url":"https://github.com/facebookincubator/create-react-app/issues/126","id":167169886,"number":126,"title":"Production build breaks code that works in development","user":{"login":"modernserf","id":938722,"avatar_url":"https://avatars.githubusercontent.com/u/938722?v=3","gravatar_id":"","url":"https://api.github.com/users/modernserf","html_url":"https://github.com/modernserf","followers_url":"https://api.github.com/users/modernserf/followers","following_url":"https://api.github.com/users/modernserf/following{/other_user}","gists_url":"https://api.github.com/users/modernserf/gists{/gist_id}","starred_url":"https://api.github.com/users/modernserf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modernserf/subscriptions","organizations_url":"https://api.github.com/users/modernserf/orgs","repos_url":"https://api.github.com/users/modernserf/repos","events_url":"https://api.github.com/users/modernserf/events{/privacy}","received_events_url":"https://api.github.com/users/modernserf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebookincubator/create-react-app/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/facebookincubator/create-react-app/labels/underlying%20tools","name":"underlying tools","color":"d93f0b"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-07-23T05:58:05Z","updated_at":"2016-07-27T21:12:13Z","closed_at":"2016-07-27T21:12:13Z","body":"```\r\nimport React from \"react\"\r\n\r\nexport default class App extends React.Component {\r\n  render() {\r\n    return (\r\n      <div>\r\n        <p>Parent</p>\r\n        <AppItem />\r\n      </div>\r\n    )\r\n  }\r\n}\r\n\r\nconst AppItem = () => {\r\n    return <div>child</div>\r\n}\r\n```\r\n\r\nWorks with `npm start`\r\nBreaks with `npm build`, giving [Element type is invalid](https://facebook.github.io/react/docs/error-decoder.html?invariant=130&args[]=undefined&args[]=) error\r\n\r\nIf you rearrange the code so that AppItem is defined before App (or you use a hoisted function declaration) it works in both environments.\r\n\r\nI suspect this has something to do with the react inline elements transformer?"}}
{"actor":{"display_login":"gaearon"}}