-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Failed to execute 'querySelector' on 'Element': '/navbarSupportedContent' is not a valid selector. #39500
Comments
I've tried to reproduce this behavior on the clean sandbox with linking Bootstrap via CDN:
And it works great, I don't have any errors/issues. |
Thank you, |
I believe that the error is thrown at the Navbar component. It can be fixed by simply replacing data-bs-target value |
@Vimall03 This works! Thanks, but why does it work? |
This works because in CSS and JavaScript, IDs are referenced with a |
@Vimall03 Damn I completely forgot about ids!! Well thanks for clearing my doubt. Cheers!! |
This is the React-JS code:
import React from 'react'
export default function About() {
}
when I run npm start run
When I click on Accordion Item 1
Also I made sure that I have included the Bootstrap JavaScript bundle in my HTML file.
The text was updated successfully, but these errors were encountered: