Closed olafsulich closed 1 year ago
I ran into a problem with the library in my setup...
It appears to be caused by a missing
type="module"
in thepackage.json
, because"main: "./dist/index.js"
points to a file of type mjs. After adding the missingtype
, everything works as it should :)What are your thoughts? Could you add this to
package.json
?
Hey @olafsulich thanks about this.
I fixed on 3.3.1 Release. Tell me if worked for u.
Hey @eduardoborges, thanks for your quick reaction :)
My problem disappeared but another appeared - Inputmask is not a function
Live version: https://codesandbox.io/s/frosty-dream-npf7cn?from-embed
Okay, I checked that and this problem has occurred since version 3.1.0
, 3.0.6
works fine...
But it has another issue caused by the inputmask
library. Because the 3.0.6
version has an old (5.0.7
) version of inputmask
, where this problem appeared. In the version of this package (5.0.9-beta.16
), that the use-mask-input
currently uses, it's already fixed.
@olafsulich are u using vite, next or something?
@eduardoborges I'm using a custom Webpack config, but I checked it in the basic Create React App setup, and it's occurred also there
@olafsulich I will release some beta versions, can you help me with some tests?
Sure :)
I believe all my problems are directly related to the Inputmask library, not your library code. What I discovered is:
inputmask: "node_modules/dist/inputmask.es6.js
, then everything works correctly.
2 But if you try this with SSR React code (my custom webpack setup) it doesn't work. Then the problem is window is not defined
, here is the issue in inputmask repo - https://github.com/RobinHerbots/Inputmask/issues/2628@olafsulich Im working im some workaround for these issues. :s
@olafsulich Hey! Can you test 3.3.2
?
@eduardoborges Hey, I don't know how you did it, but it works perfectly! Thank you for your commitment 🙏
@olafsulich yyaaaay!!!
I ran into a problem with the library in my setup...
It appears to be caused by a missing
type="module"
in thepackage.json
, because"main: "./dist/index.js"
points to a file of type mjs. After adding the missingtype
, everything works as it should :)What are your thoughts? Could you add this to
package.json
?