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

TypeError: Cannot read properties of undefined (reading 'keyboard') - Carousel Component Bootstrap v5.3.3 #41085

Open
3 tasks done
jawadmalikdev opened this issue Dec 9, 2024 · 0 comments
Labels

Comments

@jawadmalikdev
Copy link

jawadmalikdev commented Dec 9, 2024

Prerequisites

Describe the issue

I am using Vite to bundle the Bootstrap Carousel JavaScript, but it is causing an error in the browser console.

I verified that this issue is not specific to Vite, as it also occurs with the final JavaScript build bundled using Webpack.

To help reproduce the issue, I’ve provided a StackBlitz link with only the Carousel component. Please check the browser console after the page finishes loading to see the reported error:

Uncaught TypeError: can't access property "keyboard", this._config is undefined
    _addEventListeners bootstrap_js_dist_carousel__js.js:992
    Carousel bootstrap_js_dist_carousel__js.js:916

Reduced test cases

I have replicated the issue here : https://stackblitz.com/edit/vitejs-vite-fvpaeypo?file=index.html

What operating system(s) are you seeing the problem on?

macOS

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

v5.3.3

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

No branches or pull requests

2 participants