bad XRef entry
What causes it and how to fix it:
- pdf-parse and pdfjs-dist cannot share a Node process — "bad XRef entry" on classic PDFsLoading pdfjs-dist breaks pdf-parse's bundled pdf.js 1.10 ("bad XRef entry"), but only for classic xref-table PDFs and from the second request on — one PDF library per process; plus: load code under test with the loader production uses (createRequire, not await import)Cause and fix →