{"action":"created","issue":{"url":"https://api.github.com/repos/JoeStanton/babel-js-to-jsx/issues/14","labels_url":"https://api.github.com/repos/JoeStanton/babel-js-to-jsx/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/JoeStanton/babel-js-to-jsx/issues/14/comments","events_url":"https://api.github.com/repos/JoeStanton/babel-js-to-jsx/issues/14/events","html_url":"https://github.com/JoeStanton/babel-js-to-jsx/issues/14","id":130496105,"number":14,"title":"TypeError: unknown","user":{"login":"samhavens","id":7231205,"avatar_url":"https://avatars.githubusercontent.com/u/7231205?v=3","gravatar_id":"","url":"https://api.github.com/users/samhavens","html_url":"https://github.com/samhavens","followers_url":"https://api.github.com/users/samhavens/followers","following_url":"https://api.github.com/users/samhavens/following{/other_user}","gists_url":"https://api.github.com/users/samhavens/gists{/gist_id}","starred_url":"https://api.github.com/users/samhavens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samhavens/subscriptions","organizations_url":"https://api.github.com/users/samhavens/orgs","repos_url":"https://api.github.com/users/samhavens/repos","events_url":"https://api.github.com/users/samhavens/events{/privacy}","received_events_url":"https://api.github.com/users/samhavens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-01T21:53:48Z","updated_at":"2016-02-01T22:10:52Z","closed_at":null,"body":"This may be completely my fault, and/or I may be misunderstanding the purpose of this library. I am working on a project where the goal is to \"borrow\" React components from other sites. I was hoping that this library would allow me to avoid forking React Dev Tools and hacking it. Is the point of this project to turn a bundled es5 script into jsx? Or does it work only on components? Or am I way off?\r\n\r\nAnyway, here's the error. I am trying to use it on a large file containing a lot of the logic for airbnb's results page, and it is throwing\r\n\r\n```bash\r\nTypeError: unknown: Property children[0] of JSXElement expected node to be of a type [\"JSXText\",\"JSXExpressionContainer\",\"JSXElement\"] but instead got \"StringLiteral\"\r\n```"},"comment":{"url":"https://api.github.com/repos/JoeStanton/babel-js-to-jsx/issues/comments/178223249","html_url":"https://github.com/JoeStanton/babel-js-to-jsx/issues/14#issuecomment-178223249","issue_url":"https://api.github.com/repos/JoeStanton/babel-js-to-jsx/issues/14","id":178223249,"user":{"login":"JoeStanton","id":1161508,"avatar_url":"https://avatars.githubusercontent.com/u/1161508?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeStanton","html_url":"https://github.com/JoeStanton","followers_url":"https://api.github.com/users/JoeStanton/followers","following_url":"https://api.github.com/users/JoeStanton/following{/other_user}","gists_url":"https://api.github.com/users/JoeStanton/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeStanton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeStanton/subscriptions","organizations_url":"https://api.github.com/users/JoeStanton/orgs","repos_url":"https://api.github.com/users/JoeStanton/repos","events_url":"https://api.github.com/users/JoeStanton/events{/privacy}","received_events_url":"https://api.github.com/users/JoeStanton/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T22:10:52Z","updated_at":"2016-02-01T22:10:52Z","body":"This project turns ES5 React components into their ES6 + JSX equivalents. It's not really designed to reverse-engineer a full JS bundle, although I think you'd get decent mileage out of the existing transforms bar a few issues like the one you're experiencing.\r\n\r\nUltimately it should work, theoretically. Can you try tracking master instead of the tagged NPM release? I might have fixed the above issue, as it was related to an upstream babel change #12.\r\n\r\nGood luck!"}}