在我的rails 4应用程序中使用jit树。 http://philogb.github.io/jit/。 在本地使用它时,我没有收到任何错误。但是当我将我的应用程序部署到heroku时,我在资产预编译中遇到以下错误。Jit Tree JS&Assets预编译错误
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
SyntaxError: Invalid regular expression: /(C-1))}z.computePositionStep(A,y);if(C&&x>=C) {B.onComplete();return}}B.onStep(Math.round(x/: Unmatched ')'
(in /tmp/build_tposeydajlt8/app/assets/javascripts/application.js)
你没有得到任何错误编译本地资产? –
不,如果我运行rake资产,它可以正常工作:precomile。但是,当我做RAILS_ENV =生产耙子资产:在本地预先编译得到错误。 – advishnuprasad