{"action":"created","issue":{"url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/320","repository_url":"https://api.github.com/repos/jtblin/angular-chart.js","labels_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/320/comments","events_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/320/events","html_url":"https://github.com/jtblin/angular-chart.js/issues/320","id":136527386,"number":320,"title":"Error: function(ChartJsFactory) is not using explicit annotation and cannot be invoked in strict mode","user":{"login":"MihaiDinculescu","id":9944681,"avatar_url":"https://avatars.githubusercontent.com/u/9944681?v=3","gravatar_id":"","url":"https://api.github.com/users/MihaiDinculescu","html_url":"https://github.com/MihaiDinculescu","followers_url":"https://api.github.com/users/MihaiDinculescu/followers","following_url":"https://api.github.com/users/MihaiDinculescu/following{/other_user}","gists_url":"https://api.github.com/users/MihaiDinculescu/gists{/gist_id}","starred_url":"https://api.github.com/users/MihaiDinculescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MihaiDinculescu/subscriptions","organizations_url":"https://api.github.com/users/MihaiDinculescu/orgs","repos_url":"https://api.github.com/users/MihaiDinculescu/repos","events_url":"https://api.github.com/users/MihaiDinculescu/events{/privacy}","received_events_url":"https://api.github.com/users/MihaiDinculescu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-25T22:11:04Z","updated_at":"2016-02-26T11:01:27Z","closed_at":null,"body":"This issue can be easily reproduced by adding `ngStrictDi` alongside `ngApp`.\r\n\r\n`<div ng-app=\"ngAppStrictDemo\" ng-strict-di>`\r\n\r\nAdding this directive helped me investigate an issue in production (AngularJS served by RoR). The given error is very generic and didn't help at all \r\n`Error: [$injector:unpr] Unknown provider: eProvider <- e <- chartRadarDirective`.\r\n\r\nI will make a PR with the fix."},"comment":{"url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/comments/189221962","html_url":"https://github.com/jtblin/angular-chart.js/issues/320#issuecomment-189221962","issue_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/320","id":189221962,"user":{"login":"jtblin","id":1388974,"avatar_url":"https://avatars.githubusercontent.com/u/1388974?v=3","gravatar_id":"","url":"https://api.github.com/users/jtblin","html_url":"https://github.com/jtblin","followers_url":"https://api.github.com/users/jtblin/followers","following_url":"https://api.github.com/users/jtblin/following{/other_user}","gists_url":"https://api.github.com/users/jtblin/gists{/gist_id}","starred_url":"https://api.github.com/users/jtblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtblin/subscriptions","organizations_url":"https://api.github.com/users/jtblin/orgs","repos_url":"https://api.github.com/users/jtblin/repos","events_url":"https://api.github.com/users/jtblin/events{/privacy}","received_events_url":"https://api.github.com/users/jtblin/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T11:01:27Z","updated_at":"2016-02-26T11:01:27Z","body":"> The source file is included in the bower package.\r\nIn RoR we don't usually include specific JS files, we reference the bower package instead. Based on naming conventions, sprockets then searches and includes the files needed.\r\n\r\nWell `sprockets` should include the file indicated by `bower` in the `main`array so you should open a bug with `sprockets`.\r\n\r\n```\r\n{\r\n  \"name\": \"angular-chart.js\",\r\n  \"version\": \"0.8.8\",\r\n  \"main\": [\r\n    \"./dist/angular-chart.js\",\r\n    \"./dist/angular-chart.css\"\r\n  ],\r\n(...)\r\n```\r\n\r\nLooking at the errors, it might be due to angular 1.5. Let's keep the rest of the conversation in the PR."}}