react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Unexpected token <

Open jtibrewal09 opened this issue 7 years ago • 0 comments

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:

  1. Go to '…'
  2. Click on '…'
  3. Scroll down to '…'
  4. 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]:

jtibrewal09 avatar Aug 26 '19 12:08 jtibrewal09