I have a Rails/AngularJS app which works fine in local development environment. However, when I deployed this app to Amazon Cloud the AngularJS returns this error in the bro
in my case
app.config(function ($stateProvider) { $stateProvider .state('A', { ..., }); });
was changed to
app.config(["$stateProvider", function ($stateProvider) { $stateProvider .state('A', { ..., }); }]);
then minification works