n8n icon indicating copy to clipboard operation
n8n copied to clipboard

Failure to Load Multiple Custom Nodes

Open ybom77 opened this issue 5 months ago • 1 comments

Bug Description

When testing multiple custom nodes, I set the variable N8N_CUSTOM_EXTENSIONS to /<path>/node-1/dist;/<path>/node-2/dist. However, only the last custom node took effect. After reviewing the code, I found that using ; to separate multiple paths is permitted. Nonetheless, during the node loading process, the packageName is consistently set to 'CUSTOM' (see image below), which causes the last node's name to overwrite the previous ones. Could this be a bug?

image

To Reproduce

1.Create multiple n8n-nodes-starter instances. 2.Create nodes. 3.Package nodes. 4.Set N8N_CUSTOM_EXTENSIONS to multiple node paths.

Expected behavior

The multiple node paths set by the variable N8N_CUSTOM_EXTENSIONS should be loaded correctly.

Operating System

ubuntu 22.04

n8n Version

1.55.0

Node.js Version

20.16.0

Database

SQLite (default)

Execution mode

main (default)

ybom77 avatar Sep 06 '24 02:09 ybom77