starter
starter copied to clipboard
Some boilerplates to use React PDF viewer component
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):  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...

Fixes #33
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...