react-pdf-js
react-pdf-js copied to clipboard
A React component to wrap PDF.js
getting ``` render-pdf\node_modules\@bundled-es-modules\pdfjs-dist\build\pdf.js:27612 export default pdf_1; ^^^^^^ SyntaxError: Unexpected token 'export' at Object.compileFunction (node:vm:352:18) at wrapSafe (node:internal/modules/cjs/loader:1026:15 ```
I am having some problems while doing some testing with react-testing-library. Apparently, there must be an issue with the file pdf.js: ` FAIL src/pages/Ayuda/test/Ayuda.test.js ● Test suite failed to run...
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 28.1.4 to 28.1.6. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite/tree/HEAD/packages/plugin-react) from 1.3.2 to 2.0.0. Release notes Sourced from @vitejs/plugin-react's releases. [email protected] Please refer to CHANGELOG.md for details. [email protected] Please refer to CHANGELOG.md for details. [email protected] Please refer to...
Bumps [pdfjs-dist](https://github.com/mozilla/pdfjs-dist) from 2.14.305 to 2.15.349. Commits 80e9ead PDF.js version 2.15.349 - See https://github.com/mozilla/pdf.js/releases/tag/... See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this...
Bumps [tsup](https://github.com/egoist/tsup) from 6.1.3 to 6.2.1. Release notes Sourced from tsup's releases. v6.2.1 6.2.1 (2022-07-30) Bug Fixes properly log rollup errors (#682) (b595f72) return a function in onSuccess to do...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.14 to 3.0.4. Release notes Sourced from vite's releases. [email protected] Please refer to CHANGELOG.md for details. Changelog Sourced from vite's changelog. 3.0.4 (2022-07-29) fix: VITE_PUBLIC_ASSET__hash in HTML...
Changing the pages with buttons is fine. But with the scroll it is more natural and comfortable. . The plugin works for me very well
 It is working fine with the deprecated version 5.1.0 The error is from the pdf.js bundle. ``` try { regeneratorRuntime = runtime; } catch (accidentalStrictMode) { Function("r", "regeneratorRuntime =...
Hi, @mikecousins, @ksocha, there are two news: first there are lots of changes for this year in pdf-js and we **almost** don't need custom `pdfjs-dist` since original has partly typings...