Cannot make select2 work with assetmapper and stimulus #2158
Replies: 1 comment
-
I discovered that the select2 library seems to be the issue.
then, in the local select2.min.js, I simply added: at the beginning of the file... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm trying to add a select2 stimulus component to my app, but I cannot make it work.
I ran
php bin/console importmap:require select2
and created a select2_controller.js stimulus controller
I always get this error:
I tried many ways to import select2, but cannot make it work.
Any tips would greatly help!
Beta Was this translation helpful? Give feedback.
All reactions