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

TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation #3034

Open
santrajyadav196 opened this issue Jan 13, 2025 · 1 comment

Comments

@santrajyadav196
Copy link

santrajyadav196 commented Jan 13, 2025

I am using @react-pdf/renderer which version is 2.1.0. I was using this packing last 1.5years but i wasn't facing this issue but now i am facing this issue in node version from 14 to 16. I am using react which version is 16.14. The above errors is due font font is not compiling. Earlier it was working. Pls suggest me what should i do so that font works using Font.register() method.

Thanks in advance.

@diegomura
Copy link
Owner

Can you provide a way to reproduce it? You shouldn't be using window if you are rendering the doc in node. Never saw this before

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

No branches or pull requests

2 participants