Tag Archives: injectormodulerr

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

angular.js Error:[$ injector:modulerr ]Why

Error prompt is shown in the figure below:

What’s causing it: Punctuation errors. [note, the test in this paper is tested in the punctuation in the array, the errors caused by other parts of punctuation have not been sorted out]
Example:

As can be seen from the first picture above, two errors are reported. If there is a punctuation problem, the second error is exactly the same, but the first error may occur in the following ways :(may not be complete, please add in the comments below)

The above problem is basically concluded to be a punctuation problem, which can be checked globally for the presence of Chinese punctuation before other screening.
If There are any other reasons for me to comment below the article, I will put it in the article after confirmation, and indicate the information of the provider.