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

Getting error when building. #783

Open
thanveeralisayed opened this issue Aug 8, 2023 · 3 comments
Open

Getting error when building. #783

thanveeralisayed opened this issue Aug 8, 2023 · 3 comments

Comments

@thanveeralisayed
Copy link

My project uses typescript. I have installed the library to my project.

I have imported it using the statement

import { NumericFormat } from "react-number-format";

And I am getting some errors and failing to build.

my webpack version is 5.88.2.

I am attaching the error list in the image.

image

@s-yadav
Copy link
Owner

s-yadav commented Aug 13, 2023

It could be related to some custom webpack configuration on your project. can you check.

@pavloliashchynskyi
Copy link

pavloliashchynskyi commented Aug 18, 2023

@s-yadav I don't think it's caused by webpack config. I use react-number-format in many apps in monorepo. I have updated react-number-format to the last version in one of them a few days ago and everything was building well, but with another app have the same problem: PatternFormat is not exported from 'react-number-format'.

@thanveeralisayed any progress?

@thanveeralisayed
Copy link
Author

thanveeralisayed commented Aug 18, 2023

The issue was fixed by using an older version of the library. I think final 4.x.x version. The issue happened because my project uses an older typescript version.

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

3 participants