Skip to content

Temporary fix: exclude autoprefixer-rails in gemfile because of bug

Without autoprefixer-rails this works perfectly.

 ❯ rails assets:precompile                                                                                                                           [17:36:55]
yarn install v1.3.2
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.18s.
rails aborted!
ExecJS::RuntimeError: SyntaxError: Unexpected token ,
Object.parse (native)
Object.parseSourceMapInput ((execjs):23991:15)
new SourceMapConsumer ((execjs):21717:22)
PreviousMap.consumer ((execjs):19241:34)
new Input ((execjs):16656:28)
parse ((execjs):18292:17)
new LazyResult ((execjs):16859:24)
Processor.process ((execjs):19459:12)
Function.creator.process ((execjs):19021:43)
process ((execjs):24252:45)
/Users/kaspi/.rbenv/gems/2.4.0/gems/autoprefixer-rails-7.2.5/lib/autoprefixer-rails/processor.rb:36:in `process'
bin/rails:4:in `require'
bin/rails:4:in `<main>'

Caused by:
V8::Error: Unexpected token , at <eval>:17033:36
at parseSourceMapInput (<eval>:23991:15)
at SourceMapConsumer (<eval>:21717:22)
at consumer (<eval>:19241:34)
at Input (<eval>:16656:28)
at parse (<eval>:18292:17)
at LazyResult (<eval>:16859:24)
at process (<eval>:19459:12)
at creator.process (<eval>:19021:43)
at process (<eval>:24252:45)
at <eval>:1:50
/Users/kaspi/.rbenv/gems/2.4.0/gems/autoprefixer-rails-7.2.5/lib/autoprefixer-rails/processor.rb:36:in `process'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
>>> elapsed time 13s

Merge request reports