Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

Error- nodeInstance.run is not a function

Open apt-team-018 opened this issue 2 years ago • 4 comments

It's creating an issue when trying to use chatbot Error- nodeInstance.run is not a function

image

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

apt-team-018 avatar May 06 '23 16:05 apt-team-018

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.

HenryHengZJ avatar May 06 '23 18:05 HenryHengZJ

the same error happened when I had not connected the document box to the pinecone upset box.

urbanscribe avatar Jun 06 '23 19:06 urbanscribe

In my case Chain tool was not connected to conversational agent.

okradze avatar Jun 15 '23 12:06 okradze

the same error I had meet, how to resolve it

fabrietech avatar Jun 16 '23 08:06 fabrietech