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.
- 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
1 Answer
Reset to default 0It 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
版权声明:本文标题:Ruby on Rails Production with Heroku: Asset Precompile issue - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741900190a2403821.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论