{"action":"created","issue":{"url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1662","repository_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker","labels_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1662/labels{/name}","comments_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1662/comments","events_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1662/events","html_url":"https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1662","id":160549656,"number":1662,"title":"datetimepicker() is not a function","user":{"login":"webkenny","id":764108,"avatar_url":"https://avatars.githubusercontent.com/u/764108?v=3","gravatar_id":"","url":"https://api.github.com/users/webkenny","html_url":"https://github.com/webkenny","followers_url":"https://api.github.com/users/webkenny/followers","following_url":"https://api.github.com/users/webkenny/following{/other_user}","gists_url":"https://api.github.com/users/webkenny/gists{/gist_id}","starred_url":"https://api.github.com/users/webkenny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webkenny/subscriptions","organizations_url":"https://api.github.com/users/webkenny/orgs","repos_url":"https://api.github.com/users/webkenny/repos","events_url":"https://api.github.com/users/webkenny/events{/privacy}","received_events_url":"https://api.github.com/users/webkenny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-15T23:54:44Z","updated_at":"2016-07-18T04:51:41Z","closed_at":null,"body":"I am using the `npm install` method to use this package with an app I am building and no matter where I seem to put it, I receive the dreaded undefined error in my console:\r\n\r\n`Uncaught TypeError: $(...).datetimepicker is not a function`\r\n\r\nHere is my simplified JavaScript file:\r\n\r\n```\r\nwindow.$ = window.jQuery = require(\"jquery\");\r\nrequire('eonasdan-bootstrap-datetimepicker');\r\n\r\n$( document ).ready(function() {\r\n    $('.datepicker').datetimepicker();\r\n});\r\n```\r\n\r\nAm I missing something fundamental here? This seems like the simplest possible use case.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/comments/233228312","html_url":"https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1662#issuecomment-233228312","issue_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/1662","id":233228312,"user":{"login":"emakarov","id":395963,"avatar_url":"https://avatars.githubusercontent.com/u/395963?v=3","gravatar_id":"","url":"https://api.github.com/users/emakarov","html_url":"https://github.com/emakarov","followers_url":"https://api.github.com/users/emakarov/followers","following_url":"https://api.github.com/users/emakarov/following{/other_user}","gists_url":"https://api.github.com/users/emakarov/gists{/gist_id}","starred_url":"https://api.github.com/users/emakarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emakarov/subscriptions","organizations_url":"https://api.github.com/users/emakarov/orgs","repos_url":"https://api.github.com/users/emakarov/repos","events_url":"https://api.github.com/users/emakarov/events{/privacy}","received_events_url":"https://api.github.com/users/emakarov/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T04:51:40Z","updated_at":"2016-07-18T04:51:40Z","body":"same problem"}}
{"actor":{"display_login":"emakarov"}}