react-money-input icon indicating copy to clipboard operation
react-money-input copied to clipboard

getting a module not found error, tested in 2 projects.

Open dragon130 opened this issue 3 years ago • 5 comments

image

dragon130 avatar Feb 15 '23 15:02 dragon130

Same here, mac OS.

marhub avatar Feb 22 '23 13:02 marhub

Same here, Ubuntu Linux 22.10

robertomlj avatar Apr 18 '23 00:04 robertomlj

I solved my problem by installing previous versions of packages, which were tested and worked perfectly with MUI v5 and formik

Just install the following versions:

  • @rschpdr/react-money-input: v0.1.3
  • currency.js v2.0.3

This is the command with yarn:

yarn add @rschpdr/[email protected] [email protected]

This is the codesandbox example: https://codesandbox.io/s/material-ui-currency-fields-with-formik-forked-yke09l?file=/src/CurrencyField-ATM.jsx

robertomlj avatar Apr 18 '23 00:04 robertomlj

#36 and #37 are duplicates of this. It was actually renamed to CurrencyInput but the docs weren't updated. Also the package.json won't load it automatically. I was able to get it to load by: import CurrencyInput from "@rschpdr/react-money-input/dist/index"; But then the typings aren't loaded. Basically, v1.0.0 broke everything and it seems like this has been abandoned since.

hut8 avatar Aug 10 '23 20:08 hut8

The same error here.. "Module not found: Can't resolve '@rschpdr/react-money-input'

Need similar libraries or behavior using MUI components for React.. Any leads would be greatly appreciated.