kaviranga kaviranga - 10 months ago 58
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


Try as:

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

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