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.5k stars 891 forks source link

Warnings in installation #1886

Closed sumy77 closed 1 month ago

sumy77 commented 1 month ago

Before you start - checklist

Description

There are some warnings coming on installing this package.

npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated npmlog@5.0.1: This package is no longer supported. npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported. npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated gauge@3.0.2: This package is no longer supported.

Steps to reproduce

Warnings come during installation.

Expected behavior

Deprecated warnings and memory leaks should not come and should be resolved.

Actual behavior

Package should get installed without any warning.

Additional information

No response

Environment

wojtekmaj commented 1 month ago

Most of them if not all are caused by canvas package, an indirect dependency added by pdfjs-dist. canvas v3 is coming, but is not out there yet. Once out, pdfjs-dist will need to have it updated, and then finally we will be able to update pdfjs-dist on our side. Until then, there's nothing I can do.