diegomura / diegomura/react-pdf
Out-of-the-Box Errors with provided Next.js 15 example
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
**Describe the bug**
The Next.js 15 example does not work out of the box and uses a version of Next.js with a security vulnerability [CVE-2025-29927](https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw). When you try to install dependencies, there are dependency conflicts that you need to resolve manually. Even once you update the dependencies, you still receive a console error that something isn't working as it should (even though a PDF is generated).
While most can probably make their way through this or copy the error into ChatGPT to see what's going on, it just looks better for the project if the provided examples work well out of the box.
**To Reproduce**
Steps to reproduce the behavior including code snippet (if applies):
1. Clone @react-pdf/renderer repo.
2. Navigate to packages>examples>next-15
3. Install dependencies (I use npm, `npm install`)
4. See error.
**Expected behavior**
I should be able to install and view the example without errors.
**Screenshots**
_No change to package.json_
_Update React dependencies, but not Next.js_
_PDFViewer error_
**Desktop (please complete the following information):**
- OS: MacOS]
- Browser: Chrome
- React-pdf version: 4.3.0
Contributor guide
Assessment
This issue has not been assessed yet.