Javascript error Unknown provider: tProvider <- t after Rails minification Angularjs

前端 未结 4 1201
清歌不尽
清歌不尽 2020-12-28 16:59

My Rails app doesn\'t work after turned on assets magnification when assets compiled. I converted the Angular controllers to use the bracket notation, and get following erro

4条回答
  •  不思量自难忘°
    2020-12-28 17:37

    I have the same problem with the gem hiravgandhi/angularjs-rails

    I was able to work OFF minifcation in production by changing my settings in config/environments/production.rb

    config.assets.js_compressor = Uglifier.new(mangle: false)

    Using a Rails 4.0.2 app with the hiravgandhi/angularjs-rails gem as instructed by the gem installation instructions.

提交回复
热议问题