Skip to content
New issue

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

version 2.7.0 breaks with webpacker #1098

Open
rioug opened this issue Jan 24, 2024 · 0 comments
Open

version 2.7.0 breaks with webpacker #1098

rioug opened this issue Jan 24, 2024 · 0 comments

Comments

@rioug
Copy link
Contributor

rioug commented Jan 24, 2024

Issue description

When trying to generate a PDF with wicked_pdf 2.7.0 it breaks with the following error :

 ActionView::Template::Error:
       uninitialized constant Webpacker::VERSION
     
                 Webpacker::VERSION

The issue was introduced in this PR #1067

Expected or desired behavior

It should generate a pdf without any error :)

System specifications

wicked_pdf gem version (output of cat Gemfile.lock | grep wicked_pdf): 2.7.0

webpacker version: 5.4.4 ( I don't think it has anything to do with the webpacker version but who knows ? )

wkhtmltopdf version (output of wkhtmltopdf --version): wkhtmltopdf 0.12.6 (with patched qt)

whtmltopdf provider gem and version if one is used: wkhtmltopdf-binary (0.12.6.6)

platform/distribution and version (e.g. Windows 10 / Ubuntu 16.04 / Heroku cedar): Ubuntu 22.04.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant