{"action":"created","issue":{"url":"https://api.github.com/repos/chingyawhao/materialize-clockpicker/issues/12","repository_url":"https://api.github.com/repos/chingyawhao/materialize-clockpicker","labels_url":"https://api.github.com/repos/chingyawhao/materialize-clockpicker/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/chingyawhao/materialize-clockpicker/issues/12/comments","events_url":"https://api.github.com/repos/chingyawhao/materialize-clockpicker/issues/12/events","html_url":"https://github.com/chingyawhao/materialize-clockpicker/issues/12","id":158325158,"number":12,"title":"Couldn't require it as node module","user":{"login":"dineshi2it","id":5243459,"avatar_url":"https://avatars.githubusercontent.com/u/5243459?v=3","gravatar_id":"","url":"https://api.github.com/users/dineshi2it","html_url":"https://github.com/dineshi2it","followers_url":"https://api.github.com/users/dineshi2it/followers","following_url":"https://api.github.com/users/dineshi2it/following{/other_user}","gists_url":"https://api.github.com/users/dineshi2it/gists{/gist_id}","starred_url":"https://api.github.com/users/dineshi2it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dineshi2it/subscriptions","organizations_url":"https://api.github.com/users/dineshi2it/orgs","repos_url":"https://api.github.com/users/dineshi2it/repos","events_url":"https://api.github.com/users/dineshi2it/events{/privacy}","received_events_url":"https://api.github.com/users/dineshi2it/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-03T09:18:46Z","updated_at":"2016-06-27T22:34:57Z","closed_at":null,"body":"I installed clockpicker as node-module.\r\n`npm i materialize-clockpicker --save`\r\n\r\nThen I imported it as,\r\n`require(\"materialize-clockpicker\");`\r\nIt throws materialize-clockpicker module not found.\r\n\r\nIf I import it as require it as require(\"/node_modules/materialize-clockpicker/dist/js/materialize.clockpicker.js\")\r\nthen it throws, pickatime is not a function.\r\n\r\nAm I importing it wrong?"},"comment":{"url":"https://api.github.com/repos/chingyawhao/materialize-clockpicker/issues/comments/228896412","html_url":"https://github.com/chingyawhao/materialize-clockpicker/issues/12#issuecomment-228896412","issue_url":"https://api.github.com/repos/chingyawhao/materialize-clockpicker/issues/12","id":228896412,"user":{"login":"chingyawhao","id":11485343,"avatar_url":"https://avatars.githubusercontent.com/u/11485343?v=3","gravatar_id":"","url":"https://api.github.com/users/chingyawhao","html_url":"https://github.com/chingyawhao","followers_url":"https://api.github.com/users/chingyawhao/followers","following_url":"https://api.github.com/users/chingyawhao/following{/other_user}","gists_url":"https://api.github.com/users/chingyawhao/gists{/gist_id}","starred_url":"https://api.github.com/users/chingyawhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chingyawhao/subscriptions","organizations_url":"https://api.github.com/users/chingyawhao/orgs","repos_url":"https://api.github.com/users/chingyawhao/repos","events_url":"https://api.github.com/users/chingyawhao/events{/privacy}","received_events_url":"https://api.github.com/users/chingyawhao/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T22:34:57Z","updated_at":"2016-06-27T22:34:57Z","body":"I m not clear of your intention\r\nIf u are just using it in frontend, I don't think `require` is necessary\r\nCheck https://github.com/chingyawhao/materialize-clockpicker/blob/master/index.html\r\n\r\n```\r\n<link type=\"text/css\" rel=\"stylesheet\" href=\"node_modules/Materialize/dist/css/materialize.min.css\" media=\"screen,projection\" />\r\n<link type=\"text/css\" rel=\"stylesheet\" href=\"node_modules/materialize-clockpicker/dist/css/materialize.clockpicker.css\" media=\"screen,projection\" />\r\n<script src=\"node_modules/jquery/dist/jquery.min.js\"></script>\r\n<script src=\"node_modules/Materialize/dist/js/materialize.min.js\"></script>\r\n<script src=\"node_modules/materialize-clockpicker/dist/js/materialize.clockpicker.js\"></script>\r\n```\r\n"}}
{"actor":{"display_login":"chingyawhao"}}