{"action":"created","issue":{"url":"https://api.github.com/repos/conorhastings/react-syntax-highlighter/issues/10","repository_url":"https://api.github.com/repos/conorhastings/react-syntax-highlighter","labels_url":"https://api.github.com/repos/conorhastings/react-syntax-highlighter/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/conorhastings/react-syntax-highlighter/issues/10/comments","events_url":"https://api.github.com/repos/conorhastings/react-syntax-highlighter/issues/10/events","html_url":"https://github.com/conorhastings/react-syntax-highlighter/issues/10","id":155477267,"number":10,"title":"Cannot read property 'exports' of undefined","user":{"login":"DeFuex","id":1099106,"avatar_url":"https://avatars.githubusercontent.com/u/1099106?v=3","gravatar_id":"","url":"https://api.github.com/users/DeFuex","html_url":"https://github.com/DeFuex","followers_url":"https://api.github.com/users/DeFuex/followers","following_url":"https://api.github.com/users/DeFuex/following{/other_user}","gists_url":"https://api.github.com/users/DeFuex/gists{/gist_id}","starred_url":"https://api.github.com/users/DeFuex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeFuex/subscriptions","organizations_url":"https://api.github.com/users/DeFuex/orgs","repos_url":"https://api.github.com/users/DeFuex/repos","events_url":"https://api.github.com/users/DeFuex/events{/privacy}","received_events_url":"https://api.github.com/users/DeFuex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-05-18T11:22:41Z","updated_at":"2016-05-21T09:00:37Z","closed_at":null,"body":"Hi,\r\n\r\nfirst of all, thanks for this awesome project.\r\n\r\nA few days ago everything worked fine for me. Now if i npm start my project, the console tells me that some method of highlight.js -> \r\n\r\n`.... module.exports = function(hljs) {\r\n\t  var CPP = hljs.getLanguage('cpp').exports; .....`\r\n\r\nseems to have following problem \"Cannot read property 'exports' of undefined\". Could it be that it has to do with Babel 6 features for export -> https://github.com/webpack/webpack/issues/706? I tried to fix this myself, but failed until now. Maybe you can tell me whats this about? Would be awesome. Thanks!\r\n\r\n**EDIT:**\r\nPossible solution \r\nhttp://stackoverflow.com/questions/33505992/babel-6-changes-how-it-exports-default\r\nhttps://www.npmjs.com/package/babel-plugin-add-module-exports\r\n\r\nkind regards,\r\ndefuex"},"comment":{"url":"https://api.github.com/repos/conorhastings/react-syntax-highlighter/issues/comments/220767108","html_url":"https://github.com/conorhastings/react-syntax-highlighter/issues/10#issuecomment-220767108","issue_url":"https://api.github.com/repos/conorhastings/react-syntax-highlighter/issues/10","id":220767108,"user":{"login":"wooorm","id":944406,"avatar_url":"https://avatars.githubusercontent.com/u/944406?v=3","gravatar_id":"","url":"https://api.github.com/users/wooorm","html_url":"https://github.com/wooorm","followers_url":"https://api.github.com/users/wooorm/followers","following_url":"https://api.github.com/users/wooorm/following{/other_user}","gists_url":"https://api.github.com/users/wooorm/gists{/gist_id}","starred_url":"https://api.github.com/users/wooorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wooorm/subscriptions","organizations_url":"https://api.github.com/users/wooorm/orgs","repos_url":"https://api.github.com/users/wooorm/repos","events_url":"https://api.github.com/users/wooorm/events{/privacy}","received_events_url":"https://api.github.com/users/wooorm/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T09:00:37Z","updated_at":"2016-05-21T09:00:37Z","body":"@conorhastings This can be closed, right?"}}
{"actor":{"display_login":"wooorm"}}