Replies: 1 comment 3 replies
-
This is how you import select2 with asset mapper:
Enjoy. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there.
I'm trying to migrate my symfony app from webpack encore to asset mapper.
My legacy code use select2, so I tried to migrate this part too.
I've this app.js
My select2.js script :
My importmap.php :
In my web console I've this error :
Uncaught TypeError: $(...).select2 is not a function
. But my page import jquery before importing select2 so I don't understand why I've this error.I probably missing something, could you help me to fix this ?
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions