Closed pcriv closed 6 years ago
Hi @pablocrivella and thanks for reporting!
You're totally right, sass-rails
should be an explicit dependency of Maily.
FYI: I also had to add maily/logo.png
to:
Rails.application.config.assets.precompile += %w[maily/logo.png]
@pablocrivella I just pushed a branch (#23) to fix this, will ping you when this is ready, thanks!
@pablocrivella v0.7.1 (diff) released 🚀 fixing this stuff. Let me know if this version works for your app with webpacker
. Thanks!
Now i'm getting the following error.
Showing /Users/pablocrivella/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/maily-0.7.1/app/views/layouts/maily/application.html.erb where line #5 raised:
File to import not found or unreadable: maily/normalize.
Load paths:
/Users/pablocrivella/Workspace/Inspire/Ruby/NanaBackend/app/assets/stylesheets
/Users/pablocrivella/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/maily-0.7.1/app/assets/images
/Users/pablocrivella/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/maily-0.7.1/app/assets/javascripts
/Users/pablocrivella/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/maily-0.7.1/app/assets/stylesheets
/Users/pablocrivella/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/foundation_emails-2.2.1.0/vendor/assets/stylesheets
/Users/pablocrivella/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/actioncable-5.2.0/lib/assets/compiled
/Users/pablocrivella/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activestorage-5.2.0/app/assets/javascripts
/Users/pablocrivella/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/actionview-5.2.0/lib/assets/compiled
Works after adding sass-rails
again to the Gemfile
@markets Maybe we should re-open this issue?
Yep, will look into this again.
@pablocrivella could you please share more info about your setup? Rails 5.2.0 with webpacker
without sass-rails
? Would be really helpful to have a sample app that reproduces the error.
Just some of the relevant gems:
ruby "2.5.1"
gem "rails", "~> 5.2.0"
gem "bootsnap", ">= 1.1.0", require: false
gem "foundation_emails"
gem "inky-rb", require: "inky"
gem "komponent"
gem "pg", ">= 0.18", "< 2.0"
gem "premailer-rails"
gem "rails-i18n", "~> 5.1"
gem "slim-rails"
gem "webpacker"
@pablocrivella finally fixed (I hope) in v0.7.2
:)
Fix confirmed! Thanks @markets Awesome job!! 🎉
Description
On an application i have, we are mainly not using the asset pipeline and we use the
webpacker
gem instead. (webpack) So that's why we don't havesass-rails
on our Gemfile.Adding the gem fixes the issue but maybe this gem should require it?