Could somneone please help me i am gettinf "DOMMatrix is not defined" error

Describe the problem/error/question

Can someone please help me i am getting:DOMMatrix is not defined erorr.please help me it’s frustrating

error message
{
“errorMessage”: “DOMMatrix is not defined”,
“errorDescription”: “DOMMatrix is not defined”,
“errorDetails”: {},
“n8nDetails”: {
“time”: “6/3/2026, 3:30:57 PM”,
“n8nVersion”: “2.23.2 (Self Hosted)”,
“binaryDataMode”: “filesystem”
}
}

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: n8n --version
  • Database (default: SQLite): na
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: windows11

Hi @Sameer_Kalkeri,

Welcome to the community!

This issue looks similar to a previous discussion.

known regression since n8n 1.98 when pdfjs-dist was upgraded to a version that needs browser APIs like DOMMatrix — multiple github issues open on it (#16593, #16438, #16422).

Workaround: Bypass Document Loader for PDFs and use a Code node with the pdf-parse npm package instead. set NODE_FUNCTION_ALLOW_EXTERNAL=pdf-parse in ur env vars, extract the text in Code node, pass the extracted text into Vector Store Insert directly.

It would be great if you can share your workflow JSON to confirm if you are hitting the same issue.

Welcome to the n8n community @Sameer_Kalkeri

Update your instance to v 2.23, confirm that your Node.js version is the latest, and if nothing works, consider using a dedicated node for extracting text from PDFs (like PDF to Text) or a code node using libraries like pdf-parse or pdfjs-dist, which don’t depend on browser APIs to function.

i am a beginner, could you please guide me step by step…these terms are too technical

@Sameer_Kalkeri
As a beginner, it is recommended that you complete courses 1 and 2 from the community in addition to understanding the following documentation to support you,

update instance n8n Hosting Documentation and Guides | n8n Docs
replace the old read pdf Extract From File | n8n Docs
official example for extracting text from pdf Extract text from a PDF file | n8n workflow template
if you’re going to use the code node Code node documentation | n8n Docs
enable external modules Enable modules in Code node | n8n Docs

if you can, please share your json without sensitive data so we can better understand your case.

Hi @Sameer_Kalkeri Welcome!
Try this flow:

i tried this flow …why there is no output now?

This is strange, as there is no error, but the node ran successfully. Have you checked the Pinecone store?