Comments (11)
@olafsulich Im working im some workaround for these issues. :s
from use-mask-input.
@eduardoborges Hey, I don't know how you did it, but it works perfectly! Thank you for your commitment 🙏
from use-mask-input.
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.
from use-mask-input.
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
![Zrzut ekranu 2023-08-4 o 10 30 09](https://user-images.githubusercontent.com/46969484/258366737-0f1176fb-2785-4d62-8dd1-9b576d41eeb3.png)
from use-mask-input.
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.
from use-mask-input.
@olafsulich are u using vite, next or something?
from use-mask-input.
@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
from use-mask-input.
@olafsulich I will release some beta versions, can you help me with some tests?
from use-mask-input.
Sure :)
I believe all my problems are directly related to the Inputmask library, not your library code. What I discovered is:
- Using Create React App, you can eject (👎) and create a Webpack alias for inputmask
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 iswindow is not defined
, here is the issue in inputmask repo - RobinHerbots/Inputmask#2628
from use-mask-input.
@olafsulich Hey! Can you test 3.3.2
?
from use-mask-input.
@olafsulich yyaaaay!!!
from use-mask-input.
Related Issues (20)
- Unnecessary dependency (react-hook-form)? HOT 1
- Thanks for this package! 🙏 🎉 HOT 2
- TypeError: Inputmask is not a function HOT 9
- API-Options -> availability for "decimal"-mask? HOT 6
- Destructing isDirty from formState causing error with cursor-position in masked input HOT 5
- error during installation HOT 2
- 'Usage with React Hook Forms' correction HOT 1
- Remove 'mask trace' HOT 3
- Still don't get auto completion for options after last update (?) HOT 2
- docs: datetime year autofill disable
- removeMaskOnSubmit doesn't seem to work on react-hook-form HOT 1
- Integrate with react-hook-form `control` HOT 3
- Accessing unmasked value from event
- Hide the mask HOT 8
- Using controlled component causes strange behavior HOT 3
- Dynamic mask HOT 1
- Component unmount HOT 2
- Failed to resolve entry for package. HOT 7
- next.js - self is not defined HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from use-mask-input.