Inputmask: Using with webpack (AMD)

Created on 26 Jun 2016  路  6Comments  路  Source: RobinHerbots/Inputmask

I can't get jquery.inputmask to work with webpack through bower (tell webpack to look into bower folder and use bower.json to find the main file, nothing fancy).

The problem is :

ERROR in ./resources/assets/vendor/jquery.inputmask/dist/inputmask/inputmask.js
Module not found: Error: Cannot resolve module 'inputmask.dependencyLib' in /workspace/resources/assets/vendor/jquery.inputmask/dist/inputmask
 @ ./resources/assets/vendor/jquery.inputmask/dist/inputmask/inputmask.js 9:48-94

If I look at line 9 of inputmask.js, the code try to use inputmask.dependencyLib as a dependency : define([ "inputmask.dependencyLib" ], factory) but there is no inputmask.dependencyLib in the jquery.inputmask package ?

Can you help me ?

Enhancement / Feature

Most helpful comment

@osaris check out this gist and see if it works for you.

All 6 comments

@osaris ,

I still need to fix the configs for the different packaging systems.

Have a look at #861

@osaris check out this gist and see if it works for you.

@ksrb ,

Thx for sharing !!

Great to see that it works for you too.

@osaris ,

Do you still have problems? Otherwise update to version 3.3.5. I also updated the readme

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pikaclint picture pikaclint  路  3Comments

SujayKrishna picture SujayKrishna  路  7Comments

TiGR picture TiGR  路  3Comments

alexey-m-ukolov picture alexey-m-ukolov  路  4Comments

JosephWJMaxwell picture JosephWJMaxwell  路  7Comments