RobinHerbots/Inputmask

Inputmask.extendDefinitions is not a function when importing via Symfony asset mapper

dsands opened this issue · 0 comments

Using the Symfony asset mapper the dependencies are not being loaded. I think I probably need inputmask.dependencyLib and/or inputmask.extensions.js but I don't see where those are available to install.

https://symfony.com/doc/current/frontend/asset_mapper.html#importing-3rd-party-javascript-packages

Console output:

TypeError: Inputmask.extendDefinitions is not a function
at t.apply (input-mask_controller-5972e04e8a145156acc1b9233fee997b.js:17:19)
at t.connect (input-mask_controller-5972e04e8a145156acc1b9233fee997b.js:10:14)
at V.connect (stimulus.index-b5b1d00e42695b8959b4a1e94e3bc92a.js:7:26908)
at U.connectContextForScope (stimulus.index-b5b1d00e42695b8959b4a1e94e3bc92a.js:7:29710)
at stimulus.index-b5b1d00e42695b8959b4a1e94e3bc92a.js:7:37300
at Array.forEach ()
at Z.connectModule (stimulus.index-b5b1d00e42695b8959b4a1e94e3bc92a.js:7:37286)
at Z.loadDefinition (stimulus.index-b5b1d00e42695b8959b4a1e94e3bc92a.js:7:36143)
at stimulus.index-b5b1d00e42695b8959b4a1e94e3bc92a.js:7:39102
at Array.forEach ()