Uncaught Error: Bootstrap's JavaScript requires jQuery
See original GitHub issueI’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.
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:
- Created 7 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Uncaught Error: Bootstrap’s JavaScript requires jQuery To resloved these issue in angular 2,4,6
npm install jquery --save
stop the ng server if running by ctr+c then press y for yes
again type ng serve
@arvadevy Do you
import 'bootstrap';
?