{"action":"created","issue":{"url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/466","repository_url":"https://api.github.com/repos/jtblin/angular-chart.js","labels_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/466/comments","events_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/466/events","html_url":"https://github.com/jtblin/angular-chart.js/issues/466","id":171600713,"number":466,"title":"\"Uncaught ReferenceError : require is not defined\" after installing with Bower","user":{"login":"jordancrawfordnz","id":7520773,"avatar_url":"https://avatars.githubusercontent.com/u/7520773?v=3","gravatar_id":"","url":"https://api.github.com/users/jordancrawfordnz","html_url":"https://github.com/jordancrawfordnz","followers_url":"https://api.github.com/users/jordancrawfordnz/followers","following_url":"https://api.github.com/users/jordancrawfordnz/following{/other_user}","gists_url":"https://api.github.com/users/jordancrawfordnz/gists{/gist_id}","starred_url":"https://api.github.com/users/jordancrawfordnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordancrawfordnz/subscriptions","organizations_url":"https://api.github.com/users/jordancrawfordnz/orgs","repos_url":"https://api.github.com/users/jordancrawfordnz/repos","events_url":"https://api.github.com/users/jordancrawfordnz/events{/privacy}","received_events_url":"https://api.github.com/users/jordancrawfordnz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-08-17T08:21:59Z","updated_at":"2016-08-25T21:17:10Z","closed_at":"2016-08-19T10:02:59Z","body":"### Overview\r\n\r\nI setup the npm resolver then installed the latest version with Bower. My app was created with the Yeoman Angular generator, so my bower dependencies autowire.\r\n\r\nI got the message \"Uncaught ReferenceError : require is not defined\" in the console window, coming from the chart.js file. Based on http://stackoverflow.com/questions/38176769/uncaught-referenceerror-require-is-not-defined-chart-js, I manually changed the import in my HTML to go to the /dist/Chart.bundle.min.js file and this issue went away.\r\n\r\nI applied a manual override in Bower like:\r\n```\r\n\"overrides\" : {\r\n   \"chart.js\": {\r\n      \"main\": [\r\n        \"dist/Chart.bundle.min.js\"\r\n      ]\r\n    }\r\n}\r\n```\r\n\r\nHas anyone else got this issue? Possibly a Bower override could be added in the bower.json to resolve this?\r\n\r\n### Step to reproduce\r\nAs above."},"comment":{"url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/comments/242543404","html_url":"https://github.com/jtblin/angular-chart.js/issues/466#issuecomment-242543404","issue_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/466","id":242543404,"user":{"login":"ekaram","id":2814980,"avatar_url":"https://avatars.githubusercontent.com/u/2814980?v=3","gravatar_id":"","url":"https://api.github.com/users/ekaram","html_url":"https://github.com/ekaram","followers_url":"https://api.github.com/users/ekaram/followers","following_url":"https://api.github.com/users/ekaram/following{/other_user}","gists_url":"https://api.github.com/users/ekaram/gists{/gist_id}","starred_url":"https://api.github.com/users/ekaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekaram/subscriptions","organizations_url":"https://api.github.com/users/ekaram/orgs","repos_url":"https://api.github.com/users/ekaram/repos","events_url":"https://api.github.com/users/ekaram/events{/privacy}","received_events_url":"https://api.github.com/users/ekaram/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T21:17:10Z","updated_at":"2016-08-25T21:17:10Z","body":"Still having an issue with the above solution: \r\n     ..\r\n    \"angular-chart.js\": \"^1.0.1\",\r\n    \"chart.js\": \"npm:chart.js#2.1.0\"\r\n  },\r\n\"resolvers\": [\r\n    \"bower-npm-resolver\"\r\n  ]\r\n}\r\n> bower install\r\n... \r\nbower chart.js#2.1.0                                               ENOTFOUND Package npm:chart.js not found"}}
{"actor":{"display_login":"ekaram"}}