Upgraded our node.js version from 18 to 20.
After the upgrade every workflow ends with an error when the Webhook is triggered.
What is the error message (if any)?
ERROR: Cannot read properties of undefined (reading ‘getNodeParameter’)
TypeError: Cannot read properties of undefined (reading 'getNodeParameter')
at Object.webhook (/home/node/.n8n/nodes/node_modules/n8n-nodes-base/nodes/Webhook/Webhook.node.ts:99:27)
at Workflow.runWebhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:638:101)
at Object.executeWebhook (/usr/local/lib/node_modules/n8n/dist/WebhookHelpers.js:213:48)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
I would highly suggest that you update to a more recent version of n8n, as we only recently started to support node.js v.20 and this will likely cause you issues. Updating | n8n Docs
If this doesn’t fix it, could you share an example workflow where you get this error and how you’re setting up the node?
Hi!
Thanks a lot for the quick response! We found an issue in one of our declared devDependencies and this solved the problem. Everything is now running smoothly with node 20. But nevertheless we’ll move to a newer version of n8n asap.