{"action":"created","issue":{"url":"https://api.github.com/repos/mgechev/react-reorderable/issues/5","labels_url":"https://api.github.com/repos/mgechev/react-reorderable/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/mgechev/react-reorderable/issues/5/comments","events_url":"https://api.github.com/repos/mgechev/react-reorderable/issues/5/events","html_url":"https://github.com/mgechev/react-reorderable/issues/5","id":102945443,"number":5,"title":"Problems launching from NPM","user":{"login":"nzbart","id":1592130,"avatar_url":"https://avatars.githubusercontent.com/u/1592130?v=3","gravatar_id":"","url":"https://api.github.com/users/nzbart","html_url":"https://github.com/nzbart","followers_url":"https://api.github.com/users/nzbart/followers","following_url":"https://api.github.com/users/nzbart/following{/other_user}","gists_url":"https://api.github.com/users/nzbart/gists{/gist_id}","starred_url":"https://api.github.com/users/nzbart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzbart/subscriptions","organizations_url":"https://api.github.com/users/nzbart/orgs","repos_url":"https://api.github.com/users/nzbart/repos","events_url":"https://api.github.com/users/nzbart/events{/privacy}","received_events_url":"https://api.github.com/users/nzbart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-25T04:11:37Z","updated_at":"2015-08-27T20:15:36Z","closed_at":null,"body":"When I knock up a demo in [CodePen](http://codepen.io/anon/pen/eNqeyN), the component works well. However, when I pull in react-reorderable via npm and reference it using Browserify, it fails at runtime with the following error:\r\n\r\n```\r\nUncaught TypeError: Cannot read property '_currentElement' of null\r\n```\r\n\r\nI suspect this problem may be caused by a dependency not being loaded. Do you have any ideas on what I'm doing wrong?\r\n\r\nBelow is a simple app that demonstrates the problem I'm having:\r\n\r\n*package.json*\r\n```javascript\r\n{\r\n  \"name\": \"demo\",\r\n  \"scripts\": {\r\n    \"build\": \"browserify -d -t babelify App.jsx > app.js\"\r\n  },\r\n  \"dependencies\": {\r\n    \"react\": \"^0.13.3\",\r\n    \"react-reorderable\": \"^0.1.4\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"babelify\": \"^6.2.0\",\r\n    \"browserify\": \"^11.0.1\"\r\n  }\r\n}\r\n```\r\n\r\n*index.html*\r\n```javascript\r\n<html>\r\n    <head>\r\n        <script src=\"app.js\" defer></script>\r\n    </head>\r\n    <body id=ReactApp></body>\r\n</html>\r\n```\r\n\r\n*App.jsx*\r\n```javascript\r\nimport React from 'react/addons';\r\nimport ReactReorderable from 'react-reorderable';\r\n\r\nReact.render(\r\n    <ReactReorderable>\r\n        <div>1</div>\r\n        <div>2</div>\r\n        <div>3</div>\r\n        <div>4</div>\r\n        <div>5</div>\r\n    </ReactReorderable>,\r\n    document.getElementById('ReactApp')\r\n);\r\n```\r\n\r\n**Steps to reproduce:**\r\n1. Save the three files into a directory.\r\n2. Run `npm install`\r\n3. Run `npm run build`\r\n4. Load *index.html* in your browser"},"comment":{"url":"https://api.github.com/repos/mgechev/react-reorderable/issues/comments/135540034","html_url":"https://github.com/mgechev/react-reorderable/issues/5#issuecomment-135540034","issue_url":"https://api.github.com/repos/mgechev/react-reorderable/issues/5","id":135540034,"user":{"login":"culmor30","id":1647792,"avatar_url":"https://avatars.githubusercontent.com/u/1647792?v=3","gravatar_id":"","url":"https://api.github.com/users/culmor30","html_url":"https://github.com/culmor30","followers_url":"https://api.github.com/users/culmor30/followers","following_url":"https://api.github.com/users/culmor30/following{/other_user}","gists_url":"https://api.github.com/users/culmor30/gists{/gist_id}","starred_url":"https://api.github.com/users/culmor30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/culmor30/subscriptions","organizations_url":"https://api.github.com/users/culmor30/orgs","repos_url":"https://api.github.com/users/culmor30/repos","events_url":"https://api.github.com/users/culmor30/events{/privacy}","received_events_url":"https://api.github.com/users/culmor30/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T20:15:36Z","updated_at":"2015-08-27T20:15:36Z","body":"Same thing happens when using Webpack.\r\n\r\nWebpack has also started throwing about a bajillion WARNINGs when packaging since I added react-reorderable to my project. Maybe these issues are related? (Even if not, would appreciate a solution to both of these regardless). The warnings look like this:\r\n\r\n    WARNING in ../~/react/lib/React.js\r\n    There is another module with an equal name when case is ignored.\r\n    This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.\r\n    Rename module if multiple modules are expected or use equal casing if one module is expected.\r\n    \r\n    WARNING in ../~/React/lib/React.js\r\n    There is another module with an equal name when case is ignored.\r\n    This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.\r\n    Rename module if multiple modules are expected or use equal casing if one module is expected.\r\n    \r\n    WARNING in ../~/react/lib/EventPluginUtils.js\r\n    There is another module with an equal name when case is ignored.\r\n    This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.\r\n    Rename module if multiple modules are expected or use equal casing if one module is expected.\r\n    \r\n    WARNING in ../~/React/lib/EventPluginUtils.js\r\n    There is another module with an equal name when case is ignored.\r\n    This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.\r\n    Rename module if multiple modules are expected or use equal casing if one module is expected.\r\n\r\n    ...\r\n\r\nEach one is indeed repeated twice. Seems to be some issue related to using `require('React')` rather than `require('react')` as far as I can tell, but I haven't dug into it very deeply."}}