react-pdf-viewer
react-pdf-viewer copied to clipboard
PDFJS Compiled
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() {
Please take a look at this guide https://react-pdf-viewer.dev/examples/how-to-solve-the-syntax-error-unexpected-token-issue/