navbar does not load properly

1

I'm studying HTML and decided to add Bootstrap 4 into a small project. When browsing the component list on the Bootstrap site I came across the following navbar :

<nav class="navbar navbar-expand-lg navbar-light bg-light">
                <a class="navbar-brand" href="#">Navbar</a>
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
                  <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarNav">
                  <ul class="navbar-nav">
                    <li class="nav-item active">
                      <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
                    </li>
                    <li class="nav-item">
                      <a class="nav-link" href="#">Features</a>
                    </li>
                    <li class="nav-item">
                      <a class="nav-link" href="#">Pricing</a>
                    </li>
                    <li class="nav-item">
                      <a class="nav-link disabled" href="#">Disabled</a>
                    </li>
                  </ul>
                </div>
              </nav>

After downloading and referencing the framework on page index.html I noticed that navbar does not work properly when the screen is dimmed and the toggle is displayed. So I thought it was some problem with Bootstrap because I saw the following error when opening the browser console:

Again I changed Bootstrap and jQuery to version .min and even then the error persisted. Interestingly, I noticed that the Edge browser still has an error, but if I use an online HTML interpreter, this error does not occur and the toggle works by displaying the hidden items.

What should I do to solve it?

    
asked by anonymous 29.08.2018 / 22:28

0 answers