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

Exporting routes to PDF throwing an error. #36

Closed
swarchen opened this issue Dec 14, 2022 · 4 comments
Closed

Exporting routes to PDF throwing an error. #36

swarchen opened this issue Dec 14, 2022 · 4 comments

Comments

@swarchen
Copy link

Dec-14-2022 14-12-26

Generating PDF
Error generating report
Cannot read properties of undefined (reading 'styles')

Does anyone encounter the same issue as mine

@jmccollum-woolpert
Copy link
Contributor

Can you confirm what version of the application you're using? In the recently released 4.4.0 branch we did some improvements to the PDF export process so want to double check if this is still an issue in the latest release or not.

@swarchen
Copy link
Author

swarchen commented Dec 19, 2022

Hi @jasonmccollumwoolpert I'm using 4.4.0 right now. Let me try to use the previous version to check if this is the issue of the latest version.

  • Updates:
    I tried to use 4.3.0 to generate PDF. It was still unable to generate PDF successfully.

It breaks here.
Screenshot 2022-12-19 at 17 48 50

Maybe it is because this line of code?
https://github.com/google/cfr/blob/159cd56f35f97c97b80654cba3f933b445c33d6f/application/frontend/src/app/core/reducers/config.reducer.ts#L61-L62

@jmccollum-woolpert
Copy link
Contributor

Just released v4.4.1, which should address this issue. Can you try updating your deployment and confirm?

@swarchen
Copy link
Author

Hi @jasonmccollumwoolpert
It works perfectly! Thank you for the help

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

2 participants