尝试预编译 Rails 应用程序资产时出现此错误:
Unexpected token: operator (*) (line: 424, col: 9, pos: 14566)
我有许多单独的 CSS 和 JS 资产文件。我怎么知道这个错误的“*”标记是在哪一个中发现的?
xxx $ rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
xxx
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
Unexpected token: operator (*) (line: 424, col: 9, pos: 14566)