2017-03-02 51 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');