Thursday 20 April 2017

Bot Service is not working with Node.js . Error cannot find module 'botbuilder'

I created a Bot Service through 'Azure Portal' with Node.js and LUIS. When the Bot is created, i can see the 'Chat interface' loading forever with a message 'Loading chat interface'. Bot developer interface

So I opened Bot through 'My bots' in 'dev.botframework.com' and tested the connection. It failed with the below error. Bot chat window

When i pinged 'Hi' in the chat box there, i could see the error in the logs 'Exception while executing function: Functions.messages. mscorlib: Error: Cannot find module 'botbuilder'

I could see 'botbuildr' dependency in 'package.json' as below.

{
  "name": "luisbot",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "dependencies": {
    "botbuilder": "^3.7.0",
    "botbuilder-azure": "3.0.2"
  },
  "devDependencies": {
      "restify": "^4.3.0"
  },  
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}

Any suggestions for the error?



via Babu Ch

No comments:

Post a Comment