mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
fix(core): Allow loading nodes from multiple custom directories (#11130)
This commit is contained in:
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}`,
|
||||||
|
|
Loading…
Reference in a new issue