{"action":"opened","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":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-17T08:21:59Z","updated_at":"2016-08-17T08:21:59Z","closed_at":null,"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."}}
{"actor":{"display_login":"jordancrawfordnz"}}