Skip to content

REACT : InputMask is not a constructor in production mode #1130

Description

@SahyoTM

Describe the bug
When I build my react project, i have an error. InputMask is not a constructor

To Reproduce
Add an input mask with a MUI textfield and a React Hook Form controller, and use vite to build ur project.

Environment:

  • React IMask version : 7.6.1
  • MUI : 7.1.0
  • react hook form : 7.52.1
  • vite : 6.3.5

Additional context

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions