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
On version 2.1.0 of the gem when running on Webpacker version 4.2.0, the styles aren't getting included because of a guard clause checking for Webpacker::VERSION which doesn't seem to exist on a vanilla 4.2.0 install.
I was investigating this as well and I think the problem here is that webpacker is not required at all. This condition is not met in my case so I also get NameError: uninitialized constant Webpacker::VERSION.
I've tried to comment out that guard clause and put binding.pry there. When running require 'webpacker/version' if defined?(Webpacker) manually it loads webpacker and Webpacker::VERSION is defined and returns the correct version. That in the end yields correct CSS.
Maybe the problem stems from the fact that this require is conditional on defined?(Webpacker) and at this point, it's not defined yet?
Guys,
On version 2.1.0 of the gem when running on Webpacker version 4.2.0, the styles aren't getting included because of a guard clause checking for Webpacker::VERSION which doesn't seem to exist on a vanilla 4.2.0 install.
https://github.com/mileszs/wicked_pdf/blob/master/lib/wicked_pdf/wicked_pdf_helper/assets.rb#L174
The text was updated successfully, but these errors were encountered: