【发布时间】:2014-10-29 15:36:20
【问题描述】:
在一些前端接触之后,我试图推送到 Heroku,但是在预编译时出现了几个错误(我认为是语法错误)。
问题是,我得到的是预编译资产的行号,而不是原始的,所以我不知道如何调试它。!
ExecJS::ProgramError: Unexpected token: operator (<) (line: 20575, col: 0, pos: 641944)
Error
at new JS_Parse_Error (/tmp/execjs20141029-3052-g386xfjs:2357:10623)
at js_error (/tmp/execjs20141029-3052-g386xfjs:2357:10842)
at croak (/tmp/execjs20141029-3052-g386xfjs:2357:19067)
at token_error (/tmp/execjs20141029-3052-g386xfjs:2357:19204)
at unexpected (/tmp/execjs20141029-3052-g386xfjs:2357:19292)
at /tmp/execjs20141029-3052-g386xfjs:2357:27484
at /tmp/execjs20141029-3052-g386xfjs:2357:29977
at expr_ops (/tmp/execjs20141029-3052-g386xfjs:2357:30735)
at /tmp/execjs20141029-3052-g386xfjs:2357:30827
at /tmp/execjs20141029-3052-g386xfjs:2357:31270
【问题讨论】:
标签: ruby-on-rails heroku assets precompile