Bootstrap-tour with Bootstrap 4 alpha 6 n.popover 不是函数

Bootstrap-tour with Bootstrap 4 alpha 6 n.popover is not a function

尝试将 bootstrap-tour 与 bootstrap 4 一起使用,但出现以下错误:

TypeError: n.popover is not a function

我正在像这样初始化代码:

var tour = new Tour({
            steps: [
                {
                    element: "#nextLesson",
                    title: "Title of my step",
                    content: "Content of my step"
                }
            ]
        });
        tour.init();
        tour.start();

你必须initialize popover plugin那次旅行取决于:

$(function () {
    $('[data-toggle="popover"]').popover()
});