it wants something similar to this:
export default angular
.module("profile", ["ui-router"])
.controller("profileCtrl", profileCtrl)
.config(["$translationProvider", ($translateProvider) => {---}]);
per the documtention on this page:
https://docs.angularjs.org/error/$injector/strictdi
"This error occurs when attempting to invoke a function or provider which has not been explicitly annotated, while the application is running with strict-di mode enabled"
and here is a little more explanation:
http://frontendcollisionblog.com/javascript/angularjs/2015/03/31/something-no-one-tells-you-about-minifying-angularjs-controllers-until-its-too-late.html
The explicit notation is designed for the code functionality to be maintained through the code minification process. When the javascript is minified the dependencies being injected will be substituted with single characters.Therefore losing there reference. Angular won't have any idea what values the parameters are actually supposed to be and will throw an error.
To rectify this problem, Angular allows explicit dependency annotations. Using an array of strings (i.e. ["$translationProvider", function($translateProvider)]
to associate representations of dependencies. This works because strings don't get minified.
A second method is to use the $inject property which would look like this:
export default angular
.module("profile", ["ui-router"])
.controller("profileCtrl", profileCtrl)
.config(($translateProvider) => {---});
profileCtrl.$inject = ["$translationProvider"];
The purpose remains the same. For the dependency injections to survive the minification process.