react-number-format icon indicating copy to clipboard operation
react-number-format copied to clipboard

Getting error when building.

Open thanveeralisayed opened this issue 1 year ago • 3 comments

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

thanveeralisayed avatar Aug 08 '23 07:08 thanveeralisayed

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

s-yadav avatar Aug 13 '23 17:08 s-yadav

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

pavloliashchynskyi avatar Aug 18 '23 07:08 pavloliashchynskyi

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.

thanveeralisayed avatar Aug 18 '23 08:08 thanveeralisayed