react-pdf
react-pdf copied to clipboard
Unexpected token <
Before you start - checklist
- [✔️ ] I followed instructions in documentation written for my React-PDF version
- [✔️] I have checked if this bug is not already reported - already reported and closed but didn't solve my purpose.
- [✔️] I have checked if an issue is not listed in Known issues
Description I'm trying to render pdf from the URL using react 15.5.4 and react-pdf 3.0.6.
Link to codesandbox. https://codesandbox.io/s/zen-wright-ed5jc.
Short description of the bug you encountered. Unexpected token <.
Steps to reproduce Open codesandbox link
Steps to reproduce the behavior:
- Go to '…'
- Click on '…'
- Scroll down to '…'
- See error
Expected behavior
What you expected to happen?
Render PDF.
Additional information
If applicable, add screenshots (preferably with browser console open) and files you have an issue with to help explain your problem.
Environment
- Browser (if applicable) [e.g. Chrome 76]:
- React-PDF version [e.g. 3.0.6]:
- React version [e.g. 15.5.4]:
- Webpack version (if applicable) [e.g. 4.16.2]: