[X] I followed instructions in documentation written for my React-PDF version
[X] I have checked if this bug is not already reported
[X] I have checked if an issue is not listed in Known issues
[X] If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo
Description
I have updated the react-pdf to 8.0.2 and pdfjs-dist to 4.3.136 ,
but I am getting the following error. Could some one . please suggest to resolve this.
ERROR in ./node_modules/react-pdf/dist/esm/pdfjs.js 2:41-63
Before you start - checklist
Description
I have updated the react-pdf to 8.0.2 and pdfjs-dist to 4.3.136 ,
but I am getting the following error. Could some one . please suggest to resolve this.
ERROR in ./node_modules/react-pdf/dist/esm/pdfjs.js 2:41-63
export 'default' (imported as 'pdfjsModule') was not found in 'pdfjs-dist' (possible exports: AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, CMapCompressionType, ColorPicker, DOMSVGFactory, DrawLayer, FeatureTest, GlobalWorkerOptions, ImageKind, InvalidPDFException, MissingPDFException, OPS, Outliner, PDFDataRangeTransport, PDFDateString, PDFWorker, PasswordResponses, PermissionFlag, PixelsPerInch, RenderingCancelledException, TextLayer, UnexpectedResponseException, Util, VerbosityLevel, XfaLayer, build, createValidAbsoluteUrl, fetchData, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getXfaPageViewport, isDataScheme, isPdfFile, noContextMenu, normalizeUnicode, renderTextLayer, setLayerDimensions, shadow, updateTextLayer, version)
Steps to reproduce
-
Expected behavior
It should not throw any error
Actual behavior
giving the error
Additional information
-
Environment