eduardoborges / use-mask-input

✏️ A react Hook for build elegant input masks. Compatible with React Hook Form
https://npmjs.com/package/use-mask-input
266 stars 13 forks source link

Uncaught TypeError: inputmask$1 is not a function #1

Closed ttupper92618 closed 3 years ago

ttupper92618 commented 3 years ago

I'm consuming this in a component library that is published as a package. When using it in an app directly, it works as implemented. However, when this is used within a published package, then the following error is thrown in the console for any app consuming that package:

Uncaught TypeError: inputmask$1 is not a function

This is being thrown from the effect:

const maskInput = Inputmask({
      mask,
      ...options
    })
ttupper92618 commented 3 years ago

Actually, seems this is being caused by our use of rollup.