wojtekmaj / react-pdf

Display PDFs in your React app as easily as if they were images.
https://projects.wojtekmaj.pl/react-pdf
MIT License
9.34k stars 882 forks source link

TypeError: Promise.withResolvers is not a function #1831

Closed muscaiu closed 3 months ago

muscaiu commented 3 months ago

Before you start - checklist

Description

Tried to implement this library in NExtJS for a few hours now, but can't get rid of this error.

Also used your Sample next-app and still same error.

Screenshot 2024-06-18 at 16 37 21

Steps to reproduce

Use your Sample Next-App, install dependencies and run dev. In my case yarn wasn't working so i used pnpm.

Expected behavior

no error

Actual behavior

TypeError: Promise.withResolvers is not a function

Additional information

No response

Environment

wontory commented 3 months ago

I am also experiencing the same issue

wojtekmaj commented 3 months ago

Duplicate of #1811

aldwnesx commented 2 months ago

Duplicate of #1811

what is the proper working solution?