Inputmask: Uncaught TypeError: $(...).inputmask is not a function

Created on 16 Jul 2018  Â·  6Comments  Â·  Source: RobinHerbots/Inputmask

I'm using in my file but getting the error as inputmask is not a function....

Question

Most helpful comment

@brutalcrozt ,

When jQuery is not loaded it will throw an error saying "jQuery not loaded!" as from version [email protected]

All 6 comments

@poornib55 ,

I need more context. Did you include jquery?

You should try to replace $ with jQuery in your js. Like jQuery(...).inputmask

Good guess dude, i accidentally use syntax jq plugin but forgot to load the jq on the page.
Anyway, is it possible to improve the error msg, with this type error?

@brutalcrozt ,

When jQuery is not loaded it will throw an error saying "jQuery not loaded!" as from version [email protected]

Hi,
Which version are you using of the inputmask?

On Fri, Feb 21, 2020 at 4:51 PM João Paulo notifications@github.com wrote:

@RobinHerbots https://github.com/RobinHerbots I'm adding this to my
webpack

entry: {
app: './src/js/app.js',
vendor: ['jquery', 'popper.js', 'bootstrap', 'inputmask'],
},

and I'm getting this error

Uncaught TypeError: t(...).inputmask is not a function

What's wrong?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RobinHerbots/Inputmask/issues/1933?email_source=notifications&email_token=AACNX3ZWHMRJYJ3BG7F5HM3RD72BNA5CNFSM4FKDABG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMTEYLI#issuecomment-589712429,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACNX357CHDUIEVGMLMQKFLRD72BNANCNFSM4FKDABGQ
.

@RobinHerbots fix it, thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

osaris picture osaris  Â·  6Comments

blaskognia picture blaskognia  Â·  5Comments

alexey-m-ukolov picture alexey-m-ukolov  Â·  4Comments

TiGR picture TiGR  Â·  3Comments

subarachnid picture subarachnid  Â·  5Comments