I'm adding a provider to my Angular 1.6.6 project as:
angular.module('mymodule').provider('foo', function() { return {}});
That's it, I'm not even instantiating the provider in config, just declaring it in my source and it breaks my code. The weird part is that by clicking on the console link that usually opens the Angular error page, now it goes to a 404 error:
copied directly from console