react-textfit icon indicating copy to clipboard operation
react-textfit copied to clipboard

Textfit deprecated?

Open seungchulee opened this issue 4 years ago • 9 comments

when import Textfit it shows deprecated message please let me know how to fix this :sob:

Screen Shot 2021-01-08 at 7 47 27 PM Screen Shot 2021-01-08 at 7 49 13 PM

seungchulee avatar Jan 08 '21 10:01 seungchulee

Why was this closed? I'm having the same issue

iway1 avatar Jan 17 '21 18:01 iway1

Why was this closed? I'm having the same issue

I reopend this issue!

seungchulee avatar Jan 18 '21 04:01 seungchulee

Any update on this?

alekmieczkowski avatar Feb 12 '21 00:02 alekmieczkowski

I tried many fixes that I think related to this issue but with no luck, so I removed the library but couldn't find a good one to replace it so I hope we'll find a fix for this.

alpturedi avatar Feb 12 '21 05:02 alpturedi

does someone heard any update ?

Berdugo1994 avatar Feb 17 '21 17:02 Berdugo1994

@alpturedi could you describe what fixes you have tried? This library has been a huge help in some of the projects I have built, so I would like to give the deprecation issue a shot. I just don't want to waste times on avenues you've already explored. Thanks in advance

alekmieczkowski avatar Feb 17 '21 17:02 alekmieczkowski

Second part of the error I'm getting is this. I thought they were related and tried to fix this one. Do you think they are related?

Could not find a declaration file for module 'react-textfit'. 'node_modules/react-textfit/lib/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/react-textfit` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-textfit';`ts(7016)

Screen Shot 2021-02-23 at 18 07 26

alpturedi avatar Feb 23 '21 15:02 alpturedi

You can also import Textfit like so:

import Textfit from "react-textfit/lib/Textfit";

amamenko avatar Mar 18 '21 03:03 amamenko

I'm having the same issue. I tried import Textfit from "react-textfit/lib/Textfit"; as well.

bhenning83 avatar May 21 '21 00:05 bhenning83