【发布时间】:2021-08-09 04:13:51
【问题描述】:
我正在尝试将 Dialogflow 集成到 React Native,我遵循了 this 教程
但是,我遇到了这个错误。
下面是导致错误的我的 handleGoogleResponse
handleGoogleResponse(result) {
let text = result.queryResult.fulfillmentMessages[0].text.text[0]; //error
this.sendBotResponse(text);
}
我希望你能帮我解决这个问题。非常感谢。
【问题讨论】:
-
尝试通过
console.log(JSON.stringify(result))打印result的内容,这样您就可以看到更好的错误消息。
标签: javascript node.js reactjs react-native dialogflow-es-fulfillment