kaviranga kaviranga - 1 year ago 134
CSS Question

Why bootstrap.js showing the error "Uncaught Error: Bootstrap requires jQuery" when running on localhost?

I'm tested bootstrap for my laravel project in localhost using wamp on windows and when it running it on web browser it shows

"Uncaught Error: Bootstrap requires jQuery" and "(anonymous function)@bootstrap.min.js:7".

Here I didn't use cdn's for jquery and bootstrap. They are hosted in my local laravel

Answer Source

Try as:

<script type="text/javascript" src="{{asset('js/jquery.min.js')}}"></script>

<script type="text/javascript" src="{{asset('js/bootstrap.min.js')}}"></script> 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download