I had a problem deploying an AngularJS + Rails app to Heroku and eventually realized that the issue was caused by UglifyJS minification.

Error: Unknown provider: eProvider <- e is the error that I received.

I solved it by going from this pattern:

1
2
@ExampleController = ($scope, $resource) ->
  alert "Hey!"

to…

1
2
@ExampleController = ["$scope", "$resource", ($scope, $resource) ->
  alert "Hey!"]

If you’re using javascript, convert the code.

Source

Comments