phuocng

Results 236 comments of phuocng

Do you install the core package? ```js npm install @react-pdf-viewer/[email protected] ```

Can you give me the screenshot of your `node_modules` ? It should look like this

What's your bundler and version of pdfjs-dist? This [guide](https://react-pdf-viewer.dev/examples/how-to-solve-the-syntax-error-unexpected-token-issue/) might be useful as well.

@pooja-sahani-simform See #1659. pdfjs-dist v4 is supported in the latest code, and the support will be included in the next release.

@pooja-sahani-simform I added a new Starter for Craco here https://github.com/react-pdf-viewer/starter/tree/main/craco Here is the screenshot showing how it works when you run `npm run start` ![Screenshot 2024-02-21 at 21 48 43](https://github.com/react-pdf-viewer/react-pdf-viewer/assets/57786711/8f0e6132-d017-463a-b71d-f20103c726f3)

@viktorlarsson Yes, the v4 will support the latest version of pdf-js.

@vinceAmstoutz @viktorlarsson @m4nR3is The latest implementation now supports the latest version of pdf-js (4.0.379). React PDF Viewer will stop supporting the legacy build of pdf-js as well.

@viktorlarsson Please bear with us. Version 4 is going to be a major release, so stay tuned!

This should be fixed in the latest code and will be released with v4.0. I've improve the core of library, specifically the rendering part.