{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/4562","labels_url":"https://api.github.com/repos/facebook/react/issues/4562/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/4562/comments","events_url":"https://api.github.com/repos/facebook/react/issues/4562/events","html_url":"https://github.com/facebook/react/issues/4562","id":99166308,"number":4562,"title":"Issue with React, JSX, Mocha, Karma and Webpack.","user":{"login":"jonira","id":1549077,"avatar_url":"https://avatars.githubusercontent.com/u/1549077?v=3","gravatar_id":"","url":"https://api.github.com/users/jonira","html_url":"https://github.com/jonira","followers_url":"https://api.github.com/users/jonira/followers","following_url":"https://api.github.com/users/jonira/following{/other_user}","gists_url":"https://api.github.com/users/jonira/gists{/gist_id}","starred_url":"https://api.github.com/users/jonira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonira/subscriptions","organizations_url":"https://api.github.com/users/jonira/orgs","repos_url":"https://api.github.com/users/jonira/repos","events_url":"https://api.github.com/users/jonira/events{/privacy}","received_events_url":"https://api.github.com/users/jonira/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-05T09:45:25Z","updated_at":"2015-08-20T08:03:51Z","closed_at":"2015-08-06T01:05:19Z","body":"\r\nI'm trying to set up testing using mocha, karma and webpack. \r\n\r\nIn a test file I have:\r\n\r\n````\r\nvar testUtils = require('react/addons'); // addon seems to be needed for testUtils\r\n````\r\nwhich results in the following error message:\r\n````\r\nError: Invariant Violation: React.render(): Invalid component element. This may be caused by unintentionally loading two independent copies of React.\r\n\r\n````\r\n\r\nIn component files I require by simply:\r\n````\r\nvar react = require('react');\r\n````"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/132925943","html_url":"https://github.com/facebook/react/issues/4562#issuecomment-132925943","issue_url":"https://api.github.com/repos/facebook/react/issues/4562","id":132925943,"user":{"login":"jonira","id":1549077,"avatar_url":"https://avatars.githubusercontent.com/u/1549077?v=3","gravatar_id":"","url":"https://api.github.com/users/jonira","html_url":"https://github.com/jonira","followers_url":"https://api.github.com/users/jonira/followers","following_url":"https://api.github.com/users/jonira/following{/other_user}","gists_url":"https://api.github.com/users/jonira/gists{/gist_id}","starred_url":"https://api.github.com/users/jonira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonira/subscriptions","organizations_url":"https://api.github.com/users/jonira/orgs","repos_url":"https://api.github.com/users/jonira/repos","events_url":"https://api.github.com/users/jonira/events{/privacy}","received_events_url":"https://api.github.com/users/jonira/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T08:03:51Z","updated_at":"2015-08-20T08:03:51Z","body":"@yaycmyk Have you set up working alias with react & karma? I'm stuck - cannot get alias working with my configuration.\r\n\r\n@zpao Thanks for the input, although I have given up asking even slightly complicated questions on SO."}}