Answer the question
In order to leave comments, you need to log in
How to include jquery in symfony 5?
Good afternoon.
There was already such a question, but no one has answered yet. Symfony 5 and the same problem, jQuery is not included.
In assets/app.js:
...
const $ = require('jquery');
global.$ = global.jQuery = $;
...
...
// uncomment if you're having problems with a jQuery plugin
.autoProvidejQuery()
...
...
<script>
console.log( $ )
</script>
<script src="...">...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question