{"action":"created","issue":{"url":"https://api.github.com/repos/yeojz/metalsmith-react-templates/issues/20","repository_url":"https://api.github.com/repos/yeojz/metalsmith-react-templates","labels_url":"https://api.github.com/repos/yeojz/metalsmith-react-templates/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/yeojz/metalsmith-react-templates/issues/20/comments","events_url":"https://api.github.com/repos/yeojz/metalsmith-react-templates/issues/20/events","html_url":"https://github.com/yeojz/metalsmith-react-templates/issues/20","id":135204467,"number":20,"title":"outdated example: .jsx Unexpected token","user":{"login":"sandrodz","id":8479569,"avatar_url":"https://avatars.githubusercontent.com/u/8479569?v=3","gravatar_id":"","url":"https://api.github.com/users/sandrodz","html_url":"https://github.com/sandrodz","followers_url":"https://api.github.com/users/sandrodz/followers","following_url":"https://api.github.com/users/sandrodz/following{/other_user}","gists_url":"https://api.github.com/users/sandrodz/gists{/gist_id}","starred_url":"https://api.github.com/users/sandrodz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandrodz/subscriptions","organizations_url":"https://api.github.com/users/sandrodz/orgs","repos_url":"https://api.github.com/users/sandrodz/repos","events_url":"https://api.github.com/users/sandrodz/events{/privacy}","received_events_url":"https://api.github.com/users/sandrodz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yeojz/metalsmith-react-templates/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-21T13:15:25Z","updated_at":"2016-02-21T15:57:27Z","closed_at":null,"body":"I'm probably doing something wrong. getting unexpected token error:\r\n\r\n```\r\n  4 |   render: function() {\r\n  5 | \r\n> 6 |     return ();\r\n    |             ^\r\n  7 |   }\r\n  8 | });\r\n  9 | \r\n\r\n```\r\ndeps:\r\n```\r\n  \"dependencies\": {\r\n    \"babel-core\": \"^6.5.2\",\r\n    \"metalsmith\": \"^2.1.0\",\r\n    \"metalsmith-react-templates\": \"^3.1.3\",\r\n    \"react\": \"^0.14.7\",\r\n    \"react-dom\": \"^0.14.7\"\r\n  }\r\n```\r\nbuild.js\r\n\r\n```\r\nvar Metalsmith    = require('metalsmith');\r\nvar reactTemplate = require('metalsmith-react-templates');\r\n\r\nMetalsmith(__dirname)\r\n  .source('src')\r\n  .destination('build')\r\n  .clean(true)\r\n  .use(reactTemplate({\r\n    directory: 'templates',\r\n    isStatic: true\r\n  }))\r\n  .build(function(err) {\r\n    if (err) throw err;\r\n  });\r\n\r\n```\r\n\r\nentry.jsx\r\n\r\n```\r\nvar React = require('react');\r\n\r\nvar Entry = React.createClass({\r\n  render: function() {\r\n\r\n    return ();\r\n  }\r\n});\r\n\r\nmodule.exports = Entry;\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/yeojz/metalsmith-react-templates/issues/comments/186849274","html_url":"https://github.com/yeojz/metalsmith-react-templates/issues/20#issuecomment-186849274","issue_url":"https://api.github.com/repos/yeojz/metalsmith-react-templates/issues/20","id":186849274,"user":{"login":"sandrodz","id":8479569,"avatar_url":"https://avatars.githubusercontent.com/u/8479569?v=3","gravatar_id":"","url":"https://api.github.com/users/sandrodz","html_url":"https://github.com/sandrodz","followers_url":"https://api.github.com/users/sandrodz/followers","following_url":"https://api.github.com/users/sandrodz/following{/other_user}","gists_url":"https://api.github.com/users/sandrodz/gists{/gist_id}","starred_url":"https://api.github.com/users/sandrodz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandrodz/subscriptions","organizations_url":"https://api.github.com/users/sandrodz/orgs","repos_url":"https://api.github.com/users/sandrodz/repos","events_url":"https://api.github.com/users/sandrodz/events{/privacy}","received_events_url":"https://api.github.com/users/sandrodz/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T15:57:27Z","updated_at":"2016-02-21T15:57:27Z","body":"Hi, thanks for looking into this :) I've tried with html elements, error remains the same. It seems there is some kind of issue with babel? I'm not familiar to say for sure. But I saw this: http://stackoverflow.com/questions/33460420/babel-loader-jsx-syntaxerror-unexpected-token"}}