After upgrading react application to React 18 and CRA 5 getting this error
sadashiv-sumasoft opened this issue · comments
sadashiv-sumasoft commented
I have upgrade my react application to React 18 and CRA 5 version.
After upgrading i started getting this following error at the time of compiling my code.
I have tried react-pdf-highlighter both 4 and 5 version but error persist."
Any Suggestion?
ERROR in ./node_modules/react-pdf-highlighter/build/components/PdfLoader.js 19:13-24 export 'default' (imported as 'PdfjsWorker') was not found in 'pdfjs-dist/lib/pdf.worker' (possible exports: WorkerMessageHandler, __esModule)