You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
undefined method `assets' for #<Rails::Application::Configuration:>
Did you mean? asset_host
This only happens in production or when the webpack dev server is not running.
The problem seems to happen because the helpers check if the assets are compiled by checking:
config.assets.compile
But config.assets is not defined when sprockets is disabled.
System specifications
wicked_pdf gem version: 1.4.0
wkhtmltopdf version: 0.12.4
platform/distribution: Heroku
The text was updated successfully, but these errors were encountered:
EdisonArango
changed the title
Wicked PDF with Webpack does not work when sprockets is not loaded
Wicked PDF with Webpacker does not work when sprockets is not loaded
Oct 6, 2019
EdisonArango
changed the title
Wicked PDF with Webpacker does not work when sprockets is not loaded
Wicked PDF with Webpacker does not work when sprockets is not loaded (Rails 6)
Oct 9, 2019
Issue description
When I have configured webpacker and disabled sprockets in my project with Rails 6 and I use the assets helpers for webpack in the layout:
Then I get the following error:
This only happens in production or when the
webpack dev server
is not running.The problem seems to happen because the helpers check if the assets are compiled by checking:
But config.assets is not defined when
sprockets
is disabled.System specifications
wicked_pdf gem version: 1.4.0
wkhtmltopdf version: 0.12.4
platform/distribution: Heroku
The text was updated successfully, but these errors were encountered: