1

Trying to use bootstrap-tour with bootstrap 4 and am getting the followng error:

TypeError: n.popover is not a function

I am initializing the code like this:

var tour = new Tour({
            steps: [
                {
                    element: "#nextLesson",
                    title: "Title of my step",
                    content: "Content of my step"
                }
            ]
        });
        tour.init();
        tour.start();
Jethro Hazelhurst
  • 3,230
  • 7
  • 38
  • 80

1 Answers1

0

You have to initialize popover plugin that tour depends on:

$(function () {
    $('[data-toggle="popover"]').popover()
});
Serg Chernata
  • 12,280
  • 6
  • 32
  • 50