Tag Archives: Web Programming

AngularJS: Error reports on $injector:modulerr

The most common problem Angular JS has is that an application has failed to launch with an error of $Injector: Modulerr
The error was caused by a failure to load the corresponding Module, but it was difficult to find the Module that needed to be modified.
A simple trick is not to use Angular.min.js, but to use Angular.js. At this point, AngularJS gives detailed error information, which is very helpful in troubleshooting errors.
This is the error I see when I use Angular.js, so I simply remove the $translateProvider issue.
angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module acTodoApp due to:
Error: [$injector:unpr] Unknown provider: $translateProvider
http://errors.angularjs.org/1.5.5/$injector/unpr?24 translateprovider p0 = %

at http://localhost:1337/node_modules/angular/angular.js:68:12 at http://localhost:1337/node_modules/angular/angular.js:4458:19
It’s for the record.
Alva Chien,
2016.5.2