{"action":"created","issue":{"url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/74","repository_url":"https://api.github.com/repos/sapegin/react-styleguidist","labels_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/74/comments","events_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/74/events","html_url":"https://github.com/sapegin/react-styleguidist/issues/74","id":127921934,"number":74,"title":"Styleguide failing after build.","user":{"login":"jamieholliday","id":1197747,"avatar_url":"https://avatars.githubusercontent.com/u/1197747?v=3","gravatar_id":"","url":"https://api.github.com/users/jamieholliday","html_url":"https://github.com/jamieholliday","followers_url":"https://api.github.com/users/jamieholliday/followers","following_url":"https://api.github.com/users/jamieholliday/following{/other_user}","gists_url":"https://api.github.com/users/jamieholliday/gists{/gist_id}","starred_url":"https://api.github.com/users/jamieholliday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamieholliday/subscriptions","organizations_url":"https://api.github.com/users/jamieholliday/orgs","repos_url":"https://api.github.com/users/jamieholliday/repos","events_url":"https://api.github.com/users/jamieholliday/events{/privacy}","received_events_url":"https://api.github.com/users/jamieholliday/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sapegin/react-styleguidist/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-21T13:17:37Z","updated_at":"2016-02-08T13:27:35Z","closed_at":"2016-02-08T13:09:15Z","body":"Styleguide is working fine on dev server but fails after build with this error:\r\n\r\n>Uncaught Error: Cannot detect component name for .../src/components/Column/Column.js\r\n\r\nI have done a little poking around and the array of components that are the argument to setComponentsNames() in src/utils/utils.js look like this when running build (in Chrome Devtools):\r\n\r\n```\r\n{\r\nexamples: Array[1]\r\nfilepath: \" .../src/components/Column/Column.js\"\r\nmodule: function (props)\r\npathLine: \"components/Column/Column.js\"\r\nprops: Object\r\n}\r\n```\r\n\r\nbut are like this when running the dev server:\r\n\r\n```\r\n{\r\nexamples: Array[1]\r\nfilepath: \".../src/components/Column/Column.js\"\r\nmodule: function Column(props)\r\nname: \"Column\"\r\npathLine: \"components/Column/Column.js\"\r\nprops: Object\r\n}\r\n```\r\n\r\nSo as far as I can tell the function that is module and the name property are a bit different and thats whats causing the error. Not sure how to fix this though "},"comment":{"url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/comments/181365906","html_url":"https://github.com/sapegin/react-styleguidist/issues/74#issuecomment-181365906","issue_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/74","id":181365906,"user":{"login":"sapegin","id":70067,"avatar_url":"https://avatars.githubusercontent.com/u/70067?v=3","gravatar_id":"","url":"https://api.github.com/users/sapegin","html_url":"https://github.com/sapegin","followers_url":"https://api.github.com/users/sapegin/followers","following_url":"https://api.github.com/users/sapegin/following{/other_user}","gists_url":"https://api.github.com/users/sapegin/gists{/gist_id}","starred_url":"https://api.github.com/users/sapegin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sapegin/subscriptions","organizations_url":"https://api.github.com/users/sapegin/orgs","repos_url":"https://api.github.com/users/sapegin/repos","events_url":"https://api.github.com/users/sapegin/events{/privacy}","received_events_url":"https://api.github.com/users/sapegin/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T13:27:35Z","updated_at":"2016-02-08T13:27:35Z","body":"Please try 2.0.0-rc3."}}