admin管理员组

文章数量:1312778

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.

Share Improve this question edited Jan 31 at 20:45 Holger Just 55.9k15 gold badges122 silver badges135 bronze badges asked Jan 31 at 18:40 AsperAsper 111 bronze badge 3
  • What are the assets you are trying to compile in your css? Adding the relevant information to the question would be useful. – dbugger Commented Jan 31 at 20:02
  • 1 rgba needs 4 values. The 4th value is a percentage. The others range from 0 to 255. Your rgba is missing a value and the third value is expressed as a percentage as it should be an integer (though the problem might only be about the missing value) – Maxence Commented Feb 1 at 12:48
  • I'm having the same issue on my app since I updated my gems – fkoessler Commented Feb 5 at 10:29
Add a comment  | 

1 Answer 1

Reset to default 0

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!

本文标签: Ruby on Rails Production with Heroku Asset Precompile issueStack Overflow