starter icon indicating copy to clipboard operation
starter copied to clipboard

Some boilerplates to use React PDF viewer component

Results 13 starter issues
Sort by recently updated
recently updated
newest added

Module not found: Can't resolve 'pdfjs-dist/build/pdf.worker.mjs' 81 | // We import this here so that it's only loaded during client-side rendering. 82 | const pdfJS = await import("pdfjs-dist"); > 83...

Comment: Not sure where to post this, but thought it might be helpful to others Issue: When using the PDF viewer inside a page of the new app folder layout,...

When creating a basic React project using the library, I get the following error: `ERROR Invalid hook call. Hooks can only be called inside of the body of a function...

Hey! I'm alsways getting the a server error: **TypeError: Cannot read properties of undefined (reading 'includes')** I have used the example implementation (Next.js): ![screen](https://github.com/react-pdf-viewer/starter/assets/64772720/8a6938ee-698e-406d-8dc8-b2f965c61b05) Apparently this line is to blame...

Since we already import the style on _app.js, we don't need to import it again in index.js

I am trying to insert a random url in the library and its showing no cors error can you pls help me

working with react-pdf-viewer library getting this error(The API version "2.16.105" does not match the Worker version "2.15.349".) thus i have directy cloned the git repo from starter folder this are...

![image](https://user-images.githubusercontent.com/4335621/138767927-25fe881e-8433-4222-8993-638fcbb85a66.png)

The [Next.js starter](https://github.com/react-pdf-viewer/starter/tree/main/nextjs) suggest an external dependency on the pdf worker: ``` ... ... ``` Since we already have the worker file in `node_modules/pdfjs-dist` it would be more feasible to...