mtahhan's avatar

can't include jQuery & bootstrap in laravel 5.4

I very tired of trying to add jquery in my project

the app.js looking like https://cl.ly/2r0a3k3p393I

And webpack.mix.js https://cl.ly/3q1y1O2U473t

the package.json https://cl.ly/1v2U0d0V0c1T

I get this error https://cl.ly/2B2Z1E1r1p37

it is not included to jquery and bootstrap.js too

What the problem And what should I do

0 likes
1 reply
jlrdw's avatar

Just put it in a header file where needed

<script type="text/javascript" src="<?php echo asset('assets/js/jquery.js'); ?>"></script>

Convert to blade as needed, I don't use blade.

Please or to participate in this conversation.