{"action":"created","issue":{"url":"https://api.github.com/repos/skratchdot/react-bootstrap-daterangepicker/issues/42","repository_url":"https://api.github.com/repos/skratchdot/react-bootstrap-daterangepicker","labels_url":"https://api.github.com/repos/skratchdot/react-bootstrap-daterangepicker/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/skratchdot/react-bootstrap-daterangepicker/issues/42/comments","events_url":"https://api.github.com/repos/skratchdot/react-bootstrap-daterangepicker/issues/42/events","html_url":"https://github.com/skratchdot/react-bootstrap-daterangepicker/issues/42","id":112976137,"number":42,"title":"Uncaught TypeError: $this.$picker.daterangepicker is not a function","user":{"login":"itaibaruch","id":6505953,"avatar_url":"https://avatars.githubusercontent.com/u/6505953?v=3","gravatar_id":"","url":"https://api.github.com/users/itaibaruch","html_url":"https://github.com/itaibaruch","followers_url":"https://api.github.com/users/itaibaruch/followers","following_url":"https://api.github.com/users/itaibaruch/following{/other_user}","gists_url":"https://api.github.com/users/itaibaruch/gists{/gist_id}","starred_url":"https://api.github.com/users/itaibaruch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itaibaruch/subscriptions","organizations_url":"https://api.github.com/users/itaibaruch/orgs","repos_url":"https://api.github.com/users/itaibaruch/repos","events_url":"https://api.github.com/users/itaibaruch/events{/privacy}","received_events_url":"https://api.github.com/users/itaibaruch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":41,"created_at":"2015-10-23T08:28:47Z","updated_at":"2016-02-09T22:38:07Z","closed_at":null,"body":"Hi,\r\n\r\nI just install this plugin, and i can't get rid off this error:\r\n`Uncaught TypeError: $this.$picker.daterangepicker is not a function`\r\n\r\nmy setup is :\r\n\"dependencies\": {\r\n    \"bootstrap\": \"^3.3.5\",\r\n    \"history\": \"^1.12.5\",\r\n    \"intl\": \"^1.0.1\",\r\n    \"jquery\": \"^2.1.4\",\r\n    \"jquery-ui\": \"^1.10.5\",\r\n    \"moment\": \"^2.10.6\",\r\n    \"react\": \"^0.14.0\",\r\n    \"react-addons\": \"^0.9.0\",\r\n    \"react-addons-test-utils\": \"^0.14.0\",\r\n    \"react-addons-update\": \"^0.14.0\",\r\n    \"react-bootstrap\": \"^0.27.2\",\r\n    \"react-bootstrap-daterangepicker\": \"^1.0.2\",\r\n    \"react-dom\": \"^0.14.0\",\r\n    \"react-gravatar\": \"^2.1.0\",\r\n    \"react-intl\": \"^1.2.1\",\r\n    \"react-router\": \"^1.0.0-rc3\"\r\n  },\r\n\r\n\r\n'use strict'\r\n\r\nvar React = require('react');\r\nvar moment = require('moment');\r\nvar DateRangePicker = require('react-bootstrap-daterangepicker');\r\n\r\nvar DateRange = React.createClass({\r\n\tgetInitialState: function () {\r\n\t\treturn {\r\n\t\t\tranges: {\r\n\t\t\t\t'Today': [moment(), moment()],\r\n\t\t\t\t'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],\r\n\t\t\t\t'Last 7 Days': [moment().subtract(6, 'days'), moment()],\r\n\t\t\t\t'Last 30 Days': [moment().subtract(29, 'days'), moment()],\r\n\t\t\t\t'This Month': [moment().startOf('month'), moment().endOf('month')],\r\n\t\t\t\t'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]\r\n\t\t\t},\r\n\t\t\tstartDate: moment().subtract(29, 'days'),\r\n\t\t\tendDate: moment()\r\n\t\t};\r\n\t},\r\n\thandleEvent: function (event, picker) {\r\n\t\tthis.setState({\r\n\t\t\tstartDate: picker.startDate,\r\n\t\t\tendDate: picker.endDate\r\n\t\t});\r\n\t},\r\n\trender: function() {\r\n\t\tvar start = this.state.startDate.format('YYYY-MM-DD');\r\n\t\tvar end = this.state.endDate.format('YYYY-MM-DD');\r\n\t\tvar label = start + ' - ' + end;\r\n\t\tif (start === end) {\r\n\t\t\tlabel = start;\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t<div>\r\n\t\t\t\t<DateRangePicker \r\n\t\t\t\t\tstartDate={this.state.startDate} \r\n\t\t\t\t\tendDate={this.state.endDate} \r\n\t\t\t\t\tranges={this.state.ranges} \r\n\t\t\t\t\tonEvent={this.handleEvent}>\r\n\t\t\t\t\t<button className=\"btn btn-default selected-date-range-btn\" style={{width:'100%'}}>\r\n\t\t\t\t\t\t<div className=\"pull-left\">\r\n\t\t\t\t\t\t\ticon\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div className=\"pull-right\">\r\n\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t{label}\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t<span className=\"caret\"></span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</button>\r\n\t            </DateRangePicker>\r\n\t\t\t</div>\r\n\t\t);\r\n\t}\r\n});\r\nmodule.exports = DateRange;\r\n\r\ncan someone tell me what wrong, thanks."},"comment":{"url":"https://api.github.com/repos/skratchdot/react-bootstrap-daterangepicker/issues/comments/182110695","html_url":"https://github.com/skratchdot/react-bootstrap-daterangepicker/issues/42#issuecomment-182110695","issue_url":"https://api.github.com/repos/skratchdot/react-bootstrap-daterangepicker/issues/42","id":182110695,"user":{"login":"digicoffey","id":4703703,"avatar_url":"https://avatars.githubusercontent.com/u/4703703?v=3","gravatar_id":"","url":"https://api.github.com/users/digicoffey","html_url":"https://github.com/digicoffey","followers_url":"https://api.github.com/users/digicoffey/followers","following_url":"https://api.github.com/users/digicoffey/following{/other_user}","gists_url":"https://api.github.com/users/digicoffey/gists{/gist_id}","starred_url":"https://api.github.com/users/digicoffey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digicoffey/subscriptions","organizations_url":"https://api.github.com/users/digicoffey/orgs","repos_url":"https://api.github.com/users/digicoffey/repos","events_url":"https://api.github.com/users/digicoffey/events{/privacy}","received_events_url":"https://api.github.com/users/digicoffey/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T22:38:07Z","updated_at":"2016-02-09T22:38:07Z","body":"@steveohmn Thanks for the info, much appreciated. I will give it a go, but I also hope we will be able to use the latest eventually. Not having the styles is not an issue for me.\r\n\r\n@SlowburnAZ If I come across this issue and find out how to fix it I'll let you know, thanks."}}