mikecousins/react-pdf-js

react-scripts: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Closed this issue · 0 comments

Hi,

Have you guys had a look at this issue ? Im using your latest version in my project and its giving me this warning.

Compiled with warnings.
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted.

its being thrown from here pdfjs-dist/build/pdf.js

Similar issue is also mentioned in this library here as well.wojtekmaj/react-pdf#280 (comment)

In that comment he has mentioned that mozilla has done a fix for it here mozilla/pdf.js@d370037
but they have not released a version after that. Will you guys keep tabs on this? my project is not able to build because it consider warnings as reasons not to built.