【发布时间】:2014-09-11 18:18:10
【问题描述】:
我的 Rails 解决方案使用 Bower 来管理我的前端库。 我跟着this tutorial 设置它。 它正在工作,但是当我尝试预编译它时,它会出现以下错误:
RAILS_ENV=production bundle exec rake assets:precompile
rake aborted!
ExecJS::ProgramError: Unexpected token: eof (undefined) (line: 46, col: 0, pos: 1406)
Error
at new JS_Parse_Error (/tmp/execjs20140911-20410-llghcjjs:2357:10623)
at js_error (/tmp/execjs20140911-20410-llghcjjs:2357:10842)
at croak (/tmp/execjs20140911-20410-llghcjjs:2357:19067)
at token_error (/tmp/execjs20140911-20410-llghcjjs:2357:19204)
at unexpected (/tmp/execjs20140911-20410-llghcjjs:2357:19292)
at block_ (/tmp/execjs20140911-20410-llghcjjs:2357:24537)
at ctor.body (/tmp/execjs20140911-20410-llghcjjs:2357:24191)
at function_ (/tmp/execjs20140911-20410-llghcjjs:2357:24256)
at expr_atom (/tmp/execjs20140911-20410-llghcjjs:2357:27308)
at maybe_unary (/tmp/execjs20140911-20410-llghcjjs:2357:29977)
(in /home/augustopedraza/Documents/Projects/BuscoHogar/landing-page/vendor/assets/bower_components/jquery/src/intro.js)
知道怎么解决吗?
提前致谢!!!
【问题讨论】:
-
46of/home/augustopedraza/Documents/Projects/BuscoHogar/landing-page/vendor/assets/bower_components/jquery/src/intro.js的行是什么? -
这是Bower运行后下载的jQuery代码:
rake bower:install
标签: ruby-on-rails ruby ruby-on-rails-4 assets bower