Unknown Provider e-provider error while using angularjs and ruby on rails

前端 未结 3 774
滥情空心
滥情空心 2021-01-03 20:45

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

3条回答
  •  臣服心动
    2021-01-03 21:23

    In my case (Rails app), I had to remove the uglifier gem from my Gemfile and then remove the config line in config/environments/production.rb:

    config.assets.js_compressor = :uglifier
    

提交回复
热议问题