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

PDFJS Compiled

Open Volkanugr opened this issue 3 years ago • 1 comments

Hi Guys

when i try to compile my create-react-app project this error comes: my packages : react 16.8 react-scripts 4.0.3

Thanks

./node_modules/pdfjs-dist/build/pdf.js 1168:17
Module parse failed: Unexpected character '#' (1168:17)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|         }
|         class PDFDocumentLoadingTask {
>           static #docId = 0;
|           #onUnsupportedFeature = null;
|           constructor() {

Volkanugr avatar Jan 19 '23 12:01 Volkanugr

Please take a look at this guide https://react-pdf-viewer.dev/examples/how-to-solve-the-syntax-error-unexpected-token-issue/

phuocng avatar Jan 24 '23 04:01 phuocng