Error- nodeInstance.run is not a function
It's creating an issue when trying to use chatbot Error- nodeInstance.run is not a function
i am getting issues from this code const nodeInstanceFilePath = this.nodesPool.componentNodes[nodeToExecuteData.name].filePath as string const nodeModule = await import(nodeInstanceFilePath) const nodeInstance = new nodeModule.nodeClass() const result = await nodeInstance.run(nodeToExecuteData, incomingInput.question, { chatHistory: incomingInput.history })
file path - packages/server/src/index.ts
Hey have you saved the chatflow? Also you'll have to connect to Chain or Agent. For easy starter, try using one of the templates in marketplace.
the same error happened when I had not connected the document box to the pinecone upset box.
In my case Chain tool was not connected to conversational agent.
the same error I had meet, how to resolve it