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
Describe the bug
The update of @react/pdf/image from 3.0.0 to 3.0.1 has problems with custom URLs
To Reproduce
Use latest version of @react-pdf while having a custom electron protocol in the backend
Expected behavior
The img src is correctly fetched and displayed and the pdf
Desktop (please complete the following information):
OS: [Windows]
Browser [ chrome (electron)]
React-pdf version [4.1.5]
Now @react/pdf/image uses fetch since it is supported natively by node. Before it uses "cross-fetch". I use electron. To handle local files I have to use a custom protocol :
"cross-fetch" seems to understand how to handle custom URLs but fetch from node raises an error. I don't know if there is an easy fix (like a parameter to add to make it behave like cross-fetch)
Describe the bug
The update of @react/pdf/image from 3.0.0 to 3.0.1 has problems with custom URLs
To Reproduce
Expected behavior
The img src is correctly fetched and displayed and the pdf
Desktop (please complete the following information):
Now @react/pdf/image uses fetch since it is supported natively by node. Before it uses "cross-fetch". I use electron. To handle local files I have to use a custom protocol :
"cross-fetch" seems to understand how to handle custom URLs but fetch from node raises an error. I don't know if there is an easy fix (like a parameter to add to make it behave like cross-fetch)
Temporary fix :
Add this to package.json
The text was updated successfully, but these errors were encountered: