question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught Error: Bootstrap's JavaScript requires jQuery

See original GitHub issue

I’m submitting a bug report

  • Library CLI Version: 0.24.0

Please tell us about your environment:

  • Operating System: Windows 10

  • Node Version: 6.9.1

  • NPM Version: 3.10.8

  • Browser: Google Chrome

  • Language: TypeScript 2.1.5

Issue Most of the times when i build my application i get this error in my console. image

I have multiple node modules that depend on jquery so i can’t use it like this:

"jquery",
          {
            "name": "bootstrap",
            "path": "../node_modules/bootstrap/dist",
            "main": "js/bootstrap.min",
            "deps": [
              "jquery"
            ],
            "exports": "$",
            "resources": [
              "css/bootstrap.css"
            ]
          }

but i have to use it like this:

 {
            "name":"jquery",
            "path":"../node_modules/jquery/dist",
            "main":"jquery.min",
            "export": "$"
          },
          {
            "name": "bootstrap",
            "path": "../node_modules/bootstrap/dist",
            "main": "js/bootstrap.min",
            "deps": ["jquery"],
            "resources": [
              "css/bootstrap.css"
            ]
          },
{
            "name": "toastr",
            "path": "../node_modules/toastr",
            "main": "toastr",
            "resources": [
              "build/toastr.min.css"
            ],
            "deps": [
              "jquery"
            ]
          }

Any ideas?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
vedprakash289commented, Sep 21, 2018

Uncaught Error: Bootstrap’s JavaScript requires jQuery To resloved these issue in angular 2,4,6

  1. npm install jquery --save

  2. stop the ng server if running by ctr+c then press y for yes

  3. again type ng serve

1reaction
sbolelcommented, Feb 12, 2017

@arvadevy Do you import 'bootstrap';?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap throws Uncaught Error: Bootstrap's JavaScript ...
the reason for this error is that jQuery's export logic first checks for module , not window : ... jQuery = require('jquery') in...
Read more >
Uncaught Error Bootstrap s JavaScript requires jQuery - Edureka
I have tried using jQuery 1.9.0, I have tried with copies hosted on several CDNs, but I can't get it work. Can anybody...
Read more >
Bootstrap's JavaScript requires jQuery at bootstrap.min.js:6"?
He is getting error "Uncaught Error: Bootstrap's JavaScript requires jQuery at bootstrap.min.js:6" in his console. Error Image. We are not ...
Read more >
Uncaught TypeError: Bootstrap's JavaScript requires ... - Drupal
I have noticed that disabling Bootstrap Library modules gets ride off the issue. Copy bootstrap library to web/library. You can re-enable System ...
Read more >
[Solved] Uncaught error: bootstrap's javascript requires jquery
I got an error Bootstrap's JavaScript requires jQuery. Here my scripts Order. HTML. < ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found