You missed jquery.rateyo.min.js
see below its working fine when we add jquery.rateyo.min.js
in to our code:-
$(document).ready(function(){
$('#rateYo').rateYo({
starWidth: "40px"
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rateYo/2.3.2/jquery.rateyo.min.js"></script>
<div id="rateYo"></div>
2
solved Uncaught TypeError: $(…) is not a function in laravel 5.6