We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WickedPdfHelper#running_in_development?
When using Shakapacker >= 8, calling WickedPdfHelper#running_in_development? raises an exception:
uninitialized constant WickedPdf::WickedPdfHelper::Assets::Webpacker (NameError) if Webpacker.respond_to?(:dev_server) ^^^^^^^^^
Calling WickedPdfHelper#running_in_development? returns a boolean, without raising an exception.
This error occurs because Shakapacker 8 renamed all Webpacker constants to Shakapacker.
Webpacker
Shakapacker
wicked_pdf gem version (output of cat Gemfile.lock | grep wicked_pdf): 2.8.2
cat Gemfile.lock | grep wicked_pdf
shakapacker gem version : 8.0.2
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Issue description
When using Shakapacker >= 8, calling
WickedPdfHelper#running_in_development?
raises an exception:Expected or desired behavior
Calling
WickedPdfHelper#running_in_development?
returns a boolean, without raising an exception.Causes
This error occurs because Shakapacker 8 renamed all
Webpacker
constants toShakapacker
.System specifications
wicked_pdf gem version (output of
cat Gemfile.lock | grep wicked_pdf
): 2.8.2shakapacker gem version : 8.0.2
The text was updated successfully, but these errors were encountered: