Bootstrap's JavaScript requires jQuery with bootstrap build
See original GitHub issueconst { mix } = require(‘laravel-mix’);
mix.js([
‘public/admin/js/jquery.js’,
‘public/admin/js/bootstrap.min.js’,
],‘production/js/final.js’);
But when i include final.js
i got the following error
Uncaught Error: Bootstrap's JavaScript requires jQuery
I’ve installed the jquery with npm install jquery --save
but still i got above error
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Bootstrap throws Uncaught Error: Bootstrap's JavaScript ...
You need to add JQuery js before adding bootstrap js file, because BootStrap use jqueries function. So make sure to ...
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 >Uncaught Error Bootstrap s JavaScript requires jQuery - Edureka
I am trying to use Bootstrap to make an interface for a program. I added jQuery 1.11.0 to the <head> tag and thought...
Read more >Uncaught TypeError: Bootstrap's JavaScript requires jQuery ...
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 >JavaScript · Bootstrap v5.0
Bootstrap 5 is designed to be used without jQuery, but it's still possible to use our components with jQuery. If Bootstrap detects jQuery...
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 FreeTop 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
Top GitHub Comments
For all the future googlers, I solved the problem with
EDIT: Add this before all your calls to
mix.js()
andmix.scss()
etc.In
app.js
add