phuocng
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` 
@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!
No, it's a bug. Let me check it!
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.