boundless-printer-62821
04/18/2023, 8:56 PM<svg><!-- SVG file not found: 'resources.svg' --></svg> in the HTML of the navigation, and this breaks the layout (the 'Resources" span is pushed off the right and overflows the container). I am using propshaft with Rails 7, cssbundling-rails and jsbundling-railsboundless-printer-62821
04/18/2023, 9:10 PMinline_svg gem... must add avo's svg's directory to its search path.lemon-wall-20836
04/19/2023, 7:20 AMlemon-wall-20836
04/19/2023, 7:20 AMinline_svg method or Avo's svg method?lemon-wall-20836
04/19/2023, 7:21 AMsvg helper should pick up all the assetslemon-wall-20836
04/19/2023, 7:22 AMboundless-printer-62821
04/19/2023, 9:38 AMinline_svg with asset caching enabled at boot time. This seems to be the issueboundless-printer-62821
04/19/2023, 9:38 AMInlineSvg::CachedAssetFile then it works fineboundless-printer-62821
04/19/2023, 9:39 AMInlineSvg.configure do |config|
spec = Gem::Specification.find_by_name("avo")
gem_root = spec.gem_dir
config.asset_file = InlineSvg::CachedAssetFile.new(
paths: [
"#{Rails.root}/app/assets/images/svgs/",
gem_root + "/app/assets/svgs/"
],
filters: /\.svg/
)
endboundless-printer-62821
04/19/2023, 9:41 AMbrainy-electrician-9993
05/28/2025, 4:30 PMbrainy-electrician-9993
05/28/2025, 5:06 PM::Rails.application.assets_manifest (svg_finder.rb), but there's nothing there
I'm just trying to get a better idea on how the loading actually works, and why they're not foundbrainy-electrician-9993
05/28/2025, 5:07 PMbrainy-electrician-9993
05/28/2025, 5:08 PMconfig.assets.compile is false
config.asset_host is set to our serverbrainy-electrician-9993
05/28/2025, 5:14 PMbrainy-electrician-9993
05/28/2025, 5:18 PMbrainy-electrician-9993
05/28/2025, 5:26 PMbrainy-electrician-9993
05/28/2025, 6:45 PMpath = Avo::SvgFinder.find_asset("heroicons/outline/eye-off.svg").pathname gives me ruby/3.3.0/gems/avo-heroicons-0.1.1/lib/assets/svgs/heroicons/outline/eye-off.svg, which wouldn't be includedbrainy-electrician-9993
05/28/2025, 6:52 PMbrainy-electrician-9993
05/28/2025, 9:51 PMInlineSvg asset_file, causing this problem. It was just a matter of time until this bug hit the other environments.
Spent the whole day chasing my own tail. Thanks @boundless-printer-62821 for lending me your thread for this, and sorry @lemon-wall-20836 for making you question if this was an Avo bug ❤️
Everything is good now, we just removed the custom InlineSvg configuration, which wasn't even needed in the first place brainy-electrician-9993
05/28/2025, 9:55 PMbrainy-electrician-9993
05/29/2025, 4:18 PMbrainy-electrician-9993
05/29/2025, 4:19 PM