I have an issue with the asset precompilation error when trying to push my app to Heroku.
ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in block (2 levels) in create_worker'
/tmp/build_f0149c13/vendor/bundle/ruby/3.1.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in catch'
/tmp/build_f0149c13/vendor/bundle/ruby/3.1.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in block in create_worker'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
-----> Installing node-v22.11.0-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
SassC::SyntaxError: Error: overloaded function rgba given wrong number of arguments
on line 1:11446 of stdin
>> -resize-helper{background:#555;background:rgba(0 0 0%);border:1px;border-rad
------------------------------------------^
stdin:1
I don't understand the origin of the issue, does anyone have a clue?
I've tried asset:precompile
resetting assets,
config.assets.initialize_on_precompile = false
,
checking gems updates,
The major issue seems to be the resize-helper{background:#555;background:rgba(0 0 0%);border:1px;border-rad
But in any case I double checked my code and can't find any occurrences of this, it must come from a gem or something else.
I have an issue with the asset precompilation error when trying to push my app to Heroku.
ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in block (2 levels) in create_worker'
/tmp/build_f0149c13/vendor/bundle/ruby/3.1.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in catch'
/tmp/build_f0149c13/vendor/bundle/ruby/3.1.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in block in create_worker'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
-----> Installing node-v22.11.0-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
SassC::SyntaxError: Error: overloaded function rgba given wrong number of arguments
on line 1:11446 of stdin
>> -resize-helper{background:#555;background:rgba(0 0 0%);border:1px;border-rad
------------------------------------------^
stdin:1
I don't understand the origin of the issue, does anyone have a clue?
I've tried asset:precompile
resetting assets,
config.assets.initialize_on_precompile = false
,
checking gems updates,
The major issue seems to be the resize-helper{background:#555;background:rgba(0 0 0%);border:1px;border-rad
But in any case I double checked my code and can't find any occurrences of this, it must come from a gem or something else.
It looks like you're missing a value in your rgba
function. rgba
stands for Red, Green, Blue, Alpha, where the Red, Green, and Blue values are expressed as integers from 0-255 and the Alpha is a percentage from 0-100% (or 0 to 1.0).
You wrote rgba(0, 0, 0%)
— that's 0
for Red, 0
for Green, (missing) for Blue, and 0%
(plain 0
would be fine here too) for Alpha.
Update it to rgba(0, 0, 0, 0%)
and you should fix the error!