title: Unknown Provider e-provider error while using angularjs and ruby on rails
body: <p>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 browser console:</p>
  
  <pre><code>Unknown provider: eProvider &lt;- e
  </code></pre>
  
  <p>However it works fine on development environment.</p>
  
  <p>I am accesing the below service from one of my javascript files.. for eg:-</p>
  
  <pre><code>userList. storeActorListWithId()
  </code></pre>
  
  <p>My service is the following:-</p>
  
  <pre><code> woi.service('userList',['$rootScope', 'userAPI' , 'recoAPI', function($rootScope, userAPI, recoAPI){
  
      var actorList = [];
      var actorId = "";
      return{
          storeActorListWithId: function(data){
              actorList = [];
              angular.forEach(data,function(actor){
                  if(actor.castname)
                  {
                      actorList.push({name: actor.castname,id: actor.castid});
                  }
              })
          } ,
          getActorListWithId: function(){
              return actorList;
          },
          storeActorId: function(id){
              actorId = id;
          },
          getActorId: function(){
              return actorId;
          }
      }
  
  }]);
  </code></pre>
  
  <p>My application.js file is as follows.Is it minification safe or not.</p>
  
  <pre><code> resolve: {
                  checkActorId: function($route,$location,$rootScope){
                      var url = $route.current.params.id;
                      var actorName = url.replace(/\-/g, " ").replace(/\~/g, "-").replace(/\$/g, "/");
                      var  actorList = $rootScope.storeActorNameAndId;
                      if($rootScope.storeActorNameAndId){
                          angular.forEach(actorList, function(actor, key){
                              if(actor.name == actorName){
                                  $rootScope.actorid = actor.id;
                              }
                          });
                      }
                      else
                      {
                          $location.path("home")
                      }
                  }
              }
  </code></pre>
  
  <p>I have tried many solution(use of DI) given on the website but none of them is helping me.
  Please Help me..</p>
  
  <p>Thanks in advance</p>