mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(core): Allow loading nodes from multiple custom directories (#11130)
This commit is contained in:
committed by
GitHub
parent
4434668135
commit
1b84b0e5e7
@@ -260,7 +260,7 @@ export class LoadNodesAndCredentials {
|
|||||||
dir: string,
|
dir: string,
|
||||||
) {
|
) {
|
||||||
const loader = new constructor(dir, this.excludeNodes, this.includeNodes);
|
const loader = new constructor(dir, this.excludeNodes, this.includeNodes);
|
||||||
if (loader.packageName in this.loaders) {
|
if (loader instanceof PackageDirectoryLoader && loader.packageName in this.loaders) {
|
||||||
throw new ApplicationError(
|
throw new ApplicationError(
|
||||||
picocolors.red(
|
picocolors.red(
|
||||||
`nodes package ${loader.packageName} is already loaded.\n Please delete this second copy at path ${dir}`,
|
`nodes package ${loader.packageName} is already loaded.\n Please delete this second copy at path ${dir}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user