Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for react-number-format v5 #3

Open
MartinSchmidt123 opened this issue Nov 27, 2023 · 0 comments
Open

Add support for react-number-format v5 #3

MartinSchmidt123 opened this issue Nov 27, 2023 · 0 comments

Comments

@MartinSchmidt123
Copy link

During the first setup, react-number-format was installed with version 5.3.1.

Between v4 and v5 there are a few breaking changes and I run into

6: import NumberFormat from 'react-number-format';
          ^
[..]
error during build:
RollupError: "default" is not exported by "../../node_modules/.pnpm/react-number-format@5.3.1_react-dom@18.2.0_react@18.2.0/node_modules/react-number-format/dist/react-number-format.es.js", imported by "../../node_modules/.pnpm/react-hook-form-chakra-fields@0.1.7_@chakra-ui+icons@2.1.1_@chakra-ui+react@2.8.1_@emotion+re_kecz67imlc4dja4o5pzcfdqrli/node_modules/react-hook-form-chakra-fields/dist/react-hook-form-chakra-fields.esm.js".

This is also documented in the migration guide.

Downgrading react-number-format to version 4.9.4 solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant