2017-03-02 50 views
0

使用节点,我安装botbuilder定位包和下面的代码:博特框架位置选择器未找到

var locationDialog = require('botbuilder-location'); 
var options = { 
    prompt: "Where are you ?", 
    useNativeControl: true, 
    reverseGeocode: true 
    }; 
locationDialog.getLocation(session, options); 

我得到了错误:

Error: Dialog[botbuilder-location:locationPickerPrompt] not found.

在BOT建设者模拟器。模拟器中是否支持位置对话框?

+0

什么版本的botbuilder定位您使用的是?你什么时候收到错误?在getLocation后面以及何时试图访问结果? –

回答

1

好吧,我只是缺少这一行:

bot.library(locationDialog.createLibrary('API_KEY');