mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 16:44:07 -08:00
fix(core): Allow loading nodes from multiple custom directories (#11130)
This commit is contained in:
parent
563a0fc446
commit
e530bf52a3
|
@ -260,7 +260,7 @@ export class LoadNodesAndCredentials {
|
|||
dir: string,
|
||||
) {
|
||||
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(
|
||||
picocolors.red(
|
||||
`nodes package ${loader.packageName} is already loaded.\n Please delete this second copy at path ${dir}`,
|
||||
|
|
Loading…
Reference in a new issue