Laravel app.js Conflicts with Datatables
Laravel app.js Conflicts with Datatables
nandsiawaran
Posts: 1Questions: 1Answers: 0
Laravel Framework 7.29.3
I have a laravel project with bootstrap, the file having
script src="{{ asset('js/app.js') }}" defer></script>
if i comment the above line then DataTable working othervise not working
above line is important for us in auth
This discussion has been closed.
Answers
How does it conflict?
What happens?
Do you get errors in the browser's console?
Kevin
You will have to make sure that contents of the datatables js files are in App.js. A simple way of doing that is instead of using the external datatable JS file link through their CDN, place the file on your server and use laravel mix to add it to App.js and then include datatables in /resources/js/app.js
Hi i have the same problem as @kthorngren, and at home it disables my bootstrap template js file and nothing works like before, no power button, divs are shifted, but when i comment out the
src = "{{asset ('js / app.js')}}" defer> </script>
everything is working fine.With
src = "{{asset ('js / app.js')}}" defer> </script>
without
src = "{{asset ('js / app.js')}}" defer> </script>
I've replied to your question here.
Allan