{"action":"created","issue":{"url":"https://api.github.com/repos/jquense/react-widgets/issues/131","labels_url":"https://api.github.com/repos/jquense/react-widgets/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/jquense/react-widgets/issues/131/comments","events_url":"https://api.github.com/repos/jquense/react-widgets/issues/131/events","html_url":"https://github.com/jquense/react-widgets/issues/131","id":85006349,"number":131,"title":"\"Uncaught TypeError: type.toUpperCase is not a function\" when bundling with Webpack","user":{"login":"cosminnicula","id":582616,"avatar_url":"https://avatars.githubusercontent.com/u/582616?v=3","gravatar_id":"","url":"https://api.github.com/users/cosminnicula","html_url":"https://github.com/cosminnicula","followers_url":"https://api.github.com/users/cosminnicula/followers","following_url":"https://api.github.com/users/cosminnicula/following{/other_user}","gists_url":"https://api.github.com/users/cosminnicula/gists{/gist_id}","starred_url":"https://api.github.com/users/cosminnicula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosminnicula/subscriptions","organizations_url":"https://api.github.com/users/cosminnicula/orgs","repos_url":"https://api.github.com/users/cosminnicula/repos","events_url":"https://api.github.com/users/cosminnicula/events{/privacy}","received_events_url":"https://api.github.com/users/cosminnicula/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-04T09:36:39Z","updated_at":"2015-06-04T18:39:13Z","closed_at":"2015-06-04T14:56:15Z","body":"I've created a custom DropdownList called `MyDropdownList` here https://github.com/cosminnicula/ddlwebpack and bundled it with Webpack.\r\n\r\nThe bundle is consumed in a client project here https://github.com/cosminnicula/ddlwebpackclient. When I browse index.html and click on the DropdownList, I get the following error: \"Uncaught TypeError: type.toUpperCase is not a function\".\r\n\r\nI'm using react-widgets 2.6.2\r\n\r\nAny idea on this error?\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jquense/react-widgets/issues/comments/109002514","html_url":"https://github.com/jquense/react-widgets/issues/131#issuecomment-109002514","issue_url":"https://api.github.com/repos/jquense/react-widgets/issues/131","id":109002514,"user":{"login":"jquense","id":339286,"avatar_url":"https://avatars.githubusercontent.com/u/339286?v=3","gravatar_id":"","url":"https://api.github.com/users/jquense","html_url":"https://github.com/jquense","followers_url":"https://api.github.com/users/jquense/followers","following_url":"https://api.github.com/users/jquense/following{/other_user}","gists_url":"https://api.github.com/users/jquense/gists{/gist_id}","starred_url":"https://api.github.com/users/jquense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquense/subscriptions","organizations_url":"https://api.github.com/users/jquense/orgs","repos_url":"https://api.github.com/users/jquense/repos","events_url":"https://api.github.com/users/jquense/events{/privacy}","received_events_url":"https://api.github.com/users/jquense/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T18:39:13Z","updated_at":"2015-06-04T18:39:13Z","body":"> require('react-widgets') -> configured as external with Webpack\r\n\r\nyes you fix this by not doing that. There is no reason to mark it as external just require it and let webpack bundle it. then it will all work fine. IF you want react-widgets in a different bundle, use code splitting, which you can learn about on the webpack website."}}