ryanvolum / offline-directline

Unofficial package to emulate the bot framework connector locally.
https://www.npmjs.com/package/offline-directline
78 stars 44 forks source link

TypeError: Cannot read property 'name' of undefined at t.render (botchat.js:20) #49

Open kid101 opened 4 years ago

kid101 commented 4 years ago

I can verify that the messages are going to the bot, but when the bot tries to return something. it fails, is there a specific version of bot chat I should use?

const params = BotChat.queryParams(location.search); BotChat.App({ directLine: { secret: '', token: '', domain: params['domain'], webSocket: false // defaults to true } // sendTyping: true, // defaults to false. set to true to send 'typing' activities to bot (and other users) when user is typing }, botContainer);

Error in console:

Uncaught TypeError: Cannot read property 'name' of undefined at t.render (botchat.js:20) at Sn (botchat.js:20) at Cn (botchat.js:20) at An (botchat.js:20) at Un (botchat.js:20) at qn (botchat.js:20) at er (botchat.js:20) at Qn (botchat.js:20) at $n (botchat.js:20) at Object.enqueueSetState (botchat.js:28)