I do not know why I get that error if jQuery is the first library I import, I'm working with Laravel and this is what I have in my app.js file
import jQuery from 'jquery'
import My_Script from './script/myscript.js'
and in the wlcome.blade.php view I import the script
<head>
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}"></script>
</head>
the error marks it in my script in the function:
$(document).on("ready", function () {
});
already verify that jQuery is in the app.js file and that it is before my script