{"action":"created","issue":{"url":"https://api.github.com/repos/andreypopp/react-router-page-transition/issues/7","labels_url":"https://api.github.com/repos/andreypopp/react-router-page-transition/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/andreypopp/react-router-page-transition/issues/7/comments","events_url":"https://api.github.com/repos/andreypopp/react-router-page-transition/issues/7/events","html_url":"https://github.com/andreypopp/react-router-page-transition/issues/7","id":92883216,"number":7,"title":"ES6 import + Browserify = JSX Parse Error","user":{"login":"Wildhoney","id":1528477,"avatar_url":"https://avatars.githubusercontent.com/u/1528477?v=3","gravatar_id":"","url":"https://api.github.com/users/Wildhoney","html_url":"https://github.com/Wildhoney","followers_url":"https://api.github.com/users/Wildhoney/followers","following_url":"https://api.github.com/users/Wildhoney/following{/other_user}","gists_url":"https://api.github.com/users/Wildhoney/gists{/gist_id}","starred_url":"https://api.github.com/users/Wildhoney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wildhoney/subscriptions","organizations_url":"https://api.github.com/users/Wildhoney/orgs","repos_url":"https://api.github.com/users/Wildhoney/repos","events_url":"https://api.github.com/users/Wildhoney/events{/privacy}","received_events_url":"https://api.github.com/users/Wildhoney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T14:08:51Z","updated_at":"2015-07-03T14:28:00Z","closed_at":null,"body":"@andreypopp I'm trying to import the module using the module loader syntax:\r\n\r\n```javascript\r\nimport { AnimatedLocations } from 'react-router-page-transition';\r\n```\r\n\r\nHowever, when I try to transpile that using Browserify + Babelify, I get an error:\r\n\r\n> Error: Parsing file /Users/atimberlake/Webroot/Mobile/node_modules/react-router-page-transition/index.js: Unexpected token (46:6)\r\n\r\nWhich points to the JSX inside of the `react-router-page-transition` module. It seems as though Browerify doesn't process modules inside of `node_modules`.\r\n\r\nDo you have any pointers to get this to transpile? Спасибо."},"comment":{"url":"https://api.github.com/repos/andreypopp/react-router-page-transition/issues/comments/118363604","html_url":"https://github.com/andreypopp/react-router-page-transition/issues/7#issuecomment-118363604","issue_url":"https://api.github.com/repos/andreypopp/react-router-page-transition/issues/7","id":118363604,"user":{"login":"STRML","id":1197375,"avatar_url":"https://avatars.githubusercontent.com/u/1197375?v=3","gravatar_id":"","url":"https://api.github.com/users/STRML","html_url":"https://github.com/STRML","followers_url":"https://api.github.com/users/STRML/followers","following_url":"https://api.github.com/users/STRML/following{/other_user}","gists_url":"https://api.github.com/users/STRML/gists{/gist_id}","starred_url":"https://api.github.com/users/STRML/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STRML/subscriptions","organizations_url":"https://api.github.com/users/STRML/orgs","repos_url":"https://api.github.com/users/STRML/repos","events_url":"https://api.github.com/users/STRML/events{/privacy}","received_events_url":"https://api.github.com/users/STRML/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T14:28:00Z","updated_at":"2015-07-03T14:28:00Z","body":"Unfortunately the `main` import on the package.json should be `bundle.js`, not `index.js`, and this is causing your problem.\r\n\r\nThis is such a simple module that I generally recommend just copy/pasting the `<AnimatedLocations>` source into your own project somewhere."}}