Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error #1858

Closed
4 tasks done
thebkht opened this issue Aug 20, 2024 · 1 comment
Closed
4 tasks done

Build error #1858

thebkht opened this issue Aug 20, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@thebkht
Copy link

thebkht commented Aug 20, 2024

Before you start - checklist

  • I followed instructions in documentation written for my React-PDF version
  • I have checked if this bug is not already reported
  • I have checked if an issue is not listed in Known issues
  • If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo

Description

image

Steps to reproduce

run build command

Expected behavior

must be build without error

Actual behavior

..TypeError: Promise.withResolvers is not a function
at file:///C:/Users/byusu/react-pdf/sample/next-pages/node_modules/pdfjs-dist/build/pdf.mjs:5448:35
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)

Build error occurred
Error: Failed to collect page data for /Sample
at C:\Users\byusu\react-pdf\sample\next-pages\node_modules\next\dist\build\utils.js:1268:15 {
type: 'Error'
}

Additional information

No response

Environment

  • Browser (if applicable):
  • React-PDF version: ^9.1.0
  • React version: ^18.2.0
  • Bundler name and version (if applicable):
@thebkht thebkht added the bug Something isn't working label Aug 20, 2024
@wojtekmaj
Copy link
Owner

Duplicate of #1811

@wojtekmaj wojtekmaj marked this as a duplicate of #1811 Aug 22, 2024
@wojtekmaj wojtekmaj closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2024
@wojtekmaj wojtekmaj added duplicate This issue or pull request already exists question Further information is requested and removed bug Something isn't working labels Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants