diff --git a/packages/server/src/NodesPool.ts b/packages/server/src/NodesPool.ts index b17164e05a5..1ee506eaeb6 100644 --- a/packages/server/src/NodesPool.ts +++ b/packages/server/src/NodesPool.ts @@ -19,7 +19,8 @@ export class NodesPool { nodeFiles.map(async (file) => { if (file.endsWith('.js')) { const nodeModule = await require(file) - try { + + if (nodeModule.nodeClass) { const newNodeInstance = new nodeModule.nodeClass() newNodeInstance.filePath = file @@ -37,8 +38,6 @@ export class NodesPool { const nodeIconAbsolutePath = `${filePath.join('/')}/${newNodeInstance.icon}` this.componentNodes[newNodeInstance.name].icon = nodeIconAbsolutePath } - } catch (e) { - // console.error(e); } } })