n8n PDF Ingestion Breaks Due to pdf-parse v2 Incompatibility - Immediate Fixes and Long-Term Controls
n8n users encountering 'Default Data Loader Error - pdf-parse v1 only' are running into a common dependency-version mismatch that breaks PDF ingestion into vector stores. Short-term remediation is straightforward (install pdf-parse@^1), while long-term fixes require dependency governance, CI checks, and packaging to prevent recurrent failures.
The error message - "This loader currently supports pdf-parse v1 only. Please install v1, e.g. npm install pdf-parse@^1 (v2 is not yet supported)" - is a textbook case of runtime fragility caused by upstream package version changes. For teams using n8n's Default Data Loader to process PDFs into vector databases, this stops ingestion pipelines cold and creates operational risk for any automation that depends on document indexing.
Immediate remediation is simple and should be treated as a stop-gap: pin pdf-parse to the compatible major version in your environment (npm install pdf-parse@^1) and commit a package-lock.json or yarn.lock to your repository or deployment artifact. If you're using n8n cloud or a managed service, raise a support ticket and apply the fix in any self-hosted worker containers or deployment images.
For businesses, the incident highlights the need for dependency control and reproducible builds. Add automated dependency compatibility checks in CI, enable dependency lockfiles, scan for breaking changes before platform upgrades, and maintain a curated container image that includes tested library versions. Consider adding integration tests that ingest a sample PDF into a staging vector DB to catch breakages early.
Longer-term, request or contribute support for pdf-parse v2 in the n8n loader or implement a wrapper that normalizes outputs across versions. Establish SLAs and change-control practices for critical data loaders, and treat third-party parsing libraries as operational dependencies with vendor-risk reviews and monitoring of ecosystem changes.
Original Source
n8n Community
