Describe the problem/error/question
I am using the existing getreponse node and based on that I created my custom node. Authenticated successfully so I expanded the node by adding action type but at the end my node pack getting below error. I am not able to check my node in my local setup. Here I added the github repo references as well.
GITHUB: GitHub - shanky1712/n8n-nodes-encharge
What is the error message (if any)?
shankar@shankar-Lenovo-ideapad-320-15IKB:~/.n8n/custom$ n8n
User settings loaded from: /home/shankar/.n8n/config
Initializing n8n process
Error loading node “Encharge” from: “/home/shankar/.n8n/custom/node_modules/n8n-nodes-encharge/dist/nodes/Encharge/Encharge.node.js” - require(…).Encharge is not a constructor
evalmachine.:1
new (require(‘/home/shankar/.n8n/custom/node_modules/n8n-nodes-encharge/dist/nodes/Encharge/Encharge.node.js’).Encharge)()
^
TypeError: require(…).Encharge is not a constructor
at evalmachine.:1:1
at Script.runInContext (node:vm:133:12)
at loadClassInIsolation (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/ClassLoader.ts:9:16)
at CustomDirectoryLoader.loadNodeFromFile (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/DirectoryLoader.ts:83:35)
at CustomDirectoryLoader.loadAll (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/DirectoryLoader.ts:312:9)
at LoadNodesAndCredentials.runDirectoryLoader (/usr/local/lib/node_modules/n8n/src/LoadNodesAndCredentials.ts:257:3)
at LoadNodesAndCredentials.loadNodesFromCustomDirectories (/usr/local/lib/node_modules/n8n/src/LoadNodesAndCredentials.ts:175:4)
at LoadNodesAndCredentials.init (/usr/local/lib/node_modules/n8n/src/LoadNodesAndCredentials.ts:94:3)
at Start.init (/usr/local/lib/node_modules/n8n/src/commands/BaseCommand.ts:60:3)
at Start.init (/usr/local/lib/node_modules/n8n/src/commands/start.ts:173:3)
Error: Exiting due to an error.
TypeError: require(…).Encharge is not a constructor
Please share your workflow
Not possible because of the error
(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: Latest Version
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**NPM
- **Operating system:**LINUX