{"action":"created","issue":{"url":"https://api.github.com/repos/mathieudutour/react-progress-button/issues/24","repository_url":"https://api.github.com/repos/mathieudutour/react-progress-button","labels_url":"https://api.github.com/repos/mathieudutour/react-progress-button/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/mathieudutour/react-progress-button/issues/24/comments","events_url":"https://api.github.com/repos/mathieudutour/react-progress-button/issues/24/events","html_url":"https://github.com/mathieudutour/react-progress-button/issues/24","id":143236449,"number":24,"title":"“Invariant Violation: Element type is invalid:\"","user":{"login":"Coffee-Tea","id":13370430,"avatar_url":"https://avatars.githubusercontent.com/u/13370430?v=3","gravatar_id":"","url":"https://api.github.com/users/Coffee-Tea","html_url":"https://github.com/Coffee-Tea","followers_url":"https://api.github.com/users/Coffee-Tea/followers","following_url":"https://api.github.com/users/Coffee-Tea/following{/other_user}","gists_url":"https://api.github.com/users/Coffee-Tea/gists{/gist_id}","starred_url":"https://api.github.com/users/Coffee-Tea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coffee-Tea/subscriptions","organizations_url":"https://api.github.com/users/Coffee-Tea/orgs","repos_url":"https://api.github.com/users/Coffee-Tea/repos","events_url":"https://api.github.com/users/Coffee-Tea/events{/privacy}","received_events_url":"https://api.github.com/users/Coffee-Tea/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-24T12:51:53Z","updated_at":"2016-03-24T13:32:23Z","closed_at":"2016-03-24T13:32:23Z","body":"I've got messages,  when require (\"react-progress-button\") and add to my component this variable.\r\n\r\nWarning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of `UploadSection`.\r\nUncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of `UploadSection`.\r\n\r\nWhat could be the problem???"},"comment":{"url":"https://api.github.com/repos/mathieudutour/react-progress-button/issues/comments/200835141","html_url":"https://github.com/mathieudutour/react-progress-button/issues/24#issuecomment-200835141","issue_url":"https://api.github.com/repos/mathieudutour/react-progress-button/issues/24","id":200835141,"user":{"login":"Coffee-Tea","id":13370430,"avatar_url":"https://avatars.githubusercontent.com/u/13370430?v=3","gravatar_id":"","url":"https://api.github.com/users/Coffee-Tea","html_url":"https://github.com/Coffee-Tea","followers_url":"https://api.github.com/users/Coffee-Tea/followers","following_url":"https://api.github.com/users/Coffee-Tea/following{/other_user}","gists_url":"https://api.github.com/users/Coffee-Tea/gists{/gist_id}","starred_url":"https://api.github.com/users/Coffee-Tea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coffee-Tea/subscriptions","organizations_url":"https://api.github.com/users/Coffee-Tea/orgs","repos_url":"https://api.github.com/users/Coffee-Tea/repos","events_url":"https://api.github.com/users/Coffee-Tea/events{/privacy}","received_events_url":"https://api.github.com/users/Coffee-Tea/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T13:32:23Z","updated_at":"2016-03-24T13:32:23Z","body":"@mathieudutour here:\r\nThanks, but I've just solved the problem by adding \".default\" to require.\r\n\r\n```\r\n\"use strict\";\r\n\r\nvar React = require('react');\r\n**var ProgressButton = require('react-progress-button').default;**\r\nvar Header = require('../common/header.js');\r\n\r\nvar UploadSection = React.createClass({\r\n    render: function() {\r\n        return (\r\n            <section id=\"portfolio\">\r\n                <div className=\"container\">\r\n                    <div className=\"row\">\r\n                        <div className=\"col-lg-12 text-center\">\r\n                            <h3>Try it out, upload you image</h3>\r\n                            <hr className=\"star-primary\" />\r\n                            <ProgressButton>\r\n                                Upload\r\n                            </ProgressButton>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </section>\r\n        );\r\n    }   \r\n});\r\n\r\nmodule.exports = UploadSection;\r\n```"}}