react-pdf-highlighter icon indicating copy to clipboard operation
react-pdf-highlighter copied to clipboard

After React 16 to React 18 version migration getting Error

Open sadashiv-sumasoft opened this issue 3 years ago • 2 comments

WARNING in ./node_modules/react-pdf-highlighter/dist/esm/lib/pdfjs-dom.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from 'D:\projects\updateui\node_modules\react-pdf-highlighter\src\lib\pdfjs-dom.ts' file: Error: ENOENT: no such file or directory, open 'D:\projects\updateui\node_modules\react-pdf-highlighter\src\lib\pdfjs-dom.ts'

I have tried react-pdf-highlighter "^4.0.0" and "^5.4.0" versions. I am using React 18, CRA 5 version. Due to this warning we can not even create production build of application. Any suggestion?

sadashiv-sumasoft avatar Aug 10 '22 05:08 sadashiv-sumasoft

Same problem for me. Have you solved it? Or do you find these warning have an influence on the pdf render performance

Bohan-J avatar Aug 21 '23 06:08 Bohan-J

hi sadashiv-sumasoft , I want to work on this issue

sumitnagra avatar Aug 23 '23 04:08 sumitnagra