Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Bootstrap Tour Error with 'tip' property #777

Open
vijayan108 opened this issue Sep 7, 2023 · 4 comments
Open

Issue: Bootstrap Tour Error with 'tip' property #777

vijayan108 opened this issue Sep 7, 2023 · 4 comments

Comments

@vijayan108
Copy link

vijayan108 commented Sep 7, 2023

Issue: Uncaught TypeError: Cannot read properties of undefined (reading 'tip')

Description:

I'm facing a challenge when trying to implement a tour on my website using the Bootstrap Tour library. While the tour correctly identifies the elements, it fails to display the content and title as expected.

Code Sample:

function startTour() {
    var labtour = new Tour({
        name: "labtour",
        storage: window.localStorage,
        debug: true,
    });

    labtour.addSteps([{
        element: "#lab-tour",
        title: "Lab",
        content: "This is the lab. You can create and manage your experiments here.",
        placement: "bottom",
        backdrop: true,
        animation: true,
    }, {
        element: "#lab-tour-1",
        title: "Lab",
        content: "This is the lab. You can create and manage your experiments here.",
        placement: "right",
        backdrop: true,
        animation: true,
    }]);
    labtour.init();
    labtour.start();
}

Error Stack Trace:

bootstrap-tour.js:597  Uncaught TypeError: Cannot read properties of undefined (reading 'tip')
    at Tour._showPopover (bootstrap-tour.js:597:113)
    at Tour._showPopoverAndOverlay (bootstrap-tour.js:552:18)
    at Tour._showPopoverAndOverlay (bootstrap-tour.js:22:61)
    at HTMLBodyElement.<anonymous> (bootstrap-tour.js:717:31)
    at r.complete (jquery.min.js?_=v0.4-beta-555-gb4f99e00:2:62910)
    at c (jquery.min.js?_=v0.4-beta-555-gb4f99e00:2:28327)
    at Object.fireWith [as resolveWith] (jquery.min.js?_=v0.4-beta-555-gb4f99e00:2:29072)
    at u (jquery.min.js?_=v0.4-beta-555-gb4f99e00:2:59642)
    at S.fx.tick (jquery.min.js?_=v0.4-beta-555-gb4f99e00:2:64608)
    at ot (jquery.min.js?_=v0.4-beta-555-gb4f99e00:2:58967)
    


Additional Context:

All dependencies have been verified to load correctly and in the appropriate order. I'm seeking insights or suggestions to resolve this issue.

@zthomas1
Copy link

zthomas1 commented Oct 4, 2023

I am having the exact same issue when running with bootstrap 5.3

@whsimonds
Copy link

Getting the same issue

@zthomas1
Copy link

for what its worth, we decided to switch our application to drivers js for this functionality.

@vijayan108
Copy link
Author

but someone recommend me any like bootstrap tour but it should has path like where i can able show the tour for different path also because tour application are showing in single page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants