mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: Issue with versioned nodes not loading properly (#4094)
This commit is contained in:
@@ -103,13 +103,7 @@ export class WorkflowRunnerProcess {
|
|||||||
const { className, sourcePath } = this.data.nodeTypeData[nodeTypeName];
|
const { className, sourcePath } = this.data.nodeTypeData[nodeTypeName];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const nodeObject = loadClassInIsolation(sourcePath, className);
|
tempNode = loadClassInIsolation(sourcePath, className);
|
||||||
if (nodeObject.getNodeType !== undefined) {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
||||||
tempNode = nodeObject.getNodeType();
|
|
||||||
} else {
|
|
||||||
tempNode = nodeObject;
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(`Error loading node "${nodeTypeName}" from: "${sourcePath}"`);
|
throw new Error(`Error loading node "${nodeTypeName}" from: "${sourcePath}"`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user