{"action":"created","issue":{"url":"https://api.github.com/repos/kadirahq/react-storybook/issues/16","repository_url":"https://api.github.com/repos/kadirahq/react-storybook","labels_url":"https://api.github.com/repos/kadirahq/react-storybook/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/kadirahq/react-storybook/issues/16/comments","events_url":"https://api.github.com/repos/kadirahq/react-storybook/issues/16/events","html_url":"https://github.com/kadirahq/react-storybook/issues/16","id":145240041,"number":16,"title":"Module parse failed - Babel loader issue?","user":{"login":"elado","id":51488,"avatar_url":"https://avatars.githubusercontent.com/u/51488?v=3","gravatar_id":"","url":"https://api.github.com/users/elado","html_url":"https://github.com/elado","followers_url":"https://api.github.com/users/elado/followers","following_url":"https://api.github.com/users/elado/following{/other_user}","gists_url":"https://api.github.com/users/elado/gists{/gist_id}","starred_url":"https://api.github.com/users/elado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elado/subscriptions","organizations_url":"https://api.github.com/users/elado/orgs","repos_url":"https://api.github.com/users/elado/repos","events_url":"https://api.github.com/users/elado/events{/privacy}","received_events_url":"https://api.github.com/users/elado/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-01T17:42:31Z","updated_at":"2016-04-05T03:43:28Z","closed_at":null,"body":"Getting an error when running with this `.storybook/config.js`:\r\n\r\n```js\r\nimport { configure } from '@kadira/storybook'\r\n\r\nfunction loadStories() {\r\n  require('../src/SomeComponent')\r\n}\r\n\r\nconfigure(loadStories, module)\r\n```\r\n\r\nError:\r\n\r\n```\r\nERROR in ./.storybook/config.js\r\nModule parse failed: ***/.storybook/config.js Line 1: Unexpected token\r\nYou may need an appropriate loader to handle this file type.\r\n| import { configure } from '@kadira/storybook'\r\n|\r\n| function loadStories() {\r\n```\r\n\r\nSeems like babel is not transpiling or it clashes with some config in my package?"},"comment":{"url":"https://api.github.com/repos/kadirahq/react-storybook/issues/comments/205628580","html_url":"https://github.com/kadirahq/react-storybook/issues/16#issuecomment-205628580","issue_url":"https://api.github.com/repos/kadirahq/react-storybook/issues/16","id":205628580,"user":{"login":"travi","id":126441,"avatar_url":"https://avatars.githubusercontent.com/u/126441?v=3","gravatar_id":"","url":"https://api.github.com/users/travi","html_url":"https://github.com/travi","followers_url":"https://api.github.com/users/travi/followers","following_url":"https://api.github.com/users/travi/following{/other_user}","gists_url":"https://api.github.com/users/travi/gists{/gist_id}","starred_url":"https://api.github.com/users/travi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travi/subscriptions","organizations_url":"https://api.github.com/users/travi/orgs","repos_url":"https://api.github.com/users/travi/repos","events_url":"https://api.github.com/users/travi/events{/privacy}","received_events_url":"https://api.github.com/users/travi/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T03:43:28Z","updated_at":"2016-04-05T03:43:28Z","body":"I'm seeing something similar when my webpack config works correctly for production:\r\n```js\r\nERROR in ./lib/shared/views/stories/primaryNav.jsx\r\nModule parse failed: .../lib/shared/views/stories/primaryNav.jsx Line 7: Unexpected token <\r\nYou may need an appropriate loader to handle this file type.\r\n| storiesOf('Primary Nav', module)\r\n|     .add('empty nav', () => (\r\n|         <PrimaryNav primaryNav={[]}/>\r\n|     ));\r\n @ ./.storybook/config.js 6:4-57\r\n```\r\n\r\n* babel 6\r\n* node 5.1.1\r\n* npm 3.8.5\r\n\r\nThis is a fairly simple reference app that I thought would be a good testbed for this tool, but I can't seem to figure out how to get past this issue. This project is [public](https://github.com/travi/travi.org-admin/tree/react-storybook)."}}