Code Monkey home page Code Monkey logo

Comments (11)

eduardoborges avatar eduardoborges commented on June 14, 2024 2

@olafsulich Im working im some workaround for these issues. :s

from use-mask-input.

olafsulich avatar olafsulich commented on June 14, 2024 1

@eduardoborges Hey, I don't know how you did it, but it works perfectly! Thank you for your commitment 🙏

from use-mask-input.

eduardoborges avatar eduardoborges commented on June 14, 2024

I ran into a problem with the library in my setup...

It appears to be caused by a missing type="module" in the package.json, because "main: "./dist/index.js" points to a file of type mjs. After adding the missing type, 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.

olafsulich avatar olafsulich commented on June 14, 2024

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

from use-mask-input.

olafsulich avatar olafsulich commented on June 14, 2024

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.

eduardoborges avatar eduardoborges commented on June 14, 2024

@olafsulich are u using vite, next or something?

from use-mask-input.

olafsulich avatar olafsulich commented on June 14, 2024

@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.

eduardoborges avatar eduardoborges commented on June 14, 2024

@olafsulich I will release some beta versions, can you help me with some tests?

from use-mask-input.

olafsulich avatar olafsulich commented on June 14, 2024

Sure :)

I believe all my problems are directly related to the Inputmask library, not your library code. What I discovered is:

  1. 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 is window is not defined, here is the issue in inputmask repo - RobinHerbots/Inputmask#2628

from use-mask-input.

eduardoborges avatar eduardoborges commented on June 14, 2024

@olafsulich Hey! Can you test 3.3.2 ?

from use-mask-input.

eduardoborges avatar eduardoborges commented on June 14, 2024

@olafsulich yyaaaay!!!

from use-mask-input.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.