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

Textfit deprecated? #69

Open
seungchulee opened this issue Jan 8, 2021 · 9 comments
Open

Textfit deprecated? #69

seungchulee opened this issue Jan 8, 2021 · 9 comments

Comments

@seungchulee
Copy link

seungchulee commented Jan 8, 2021

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

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

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

@iway1
Copy link

iway1 commented Jan 17, 2021

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

@seungchulee seungchulee reopened this Jan 18, 2021
@seungchulee
Copy link
Author

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

I reopend this issue!

@alekmieczkowski
Copy link

Any update on this?

@alpturedi
Copy link

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.

@Berdugo1994
Copy link

does someone heard any update ?

@alekmieczkowski
Copy link

@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

@alpturedi
Copy link

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

@amamenko
Copy link

You can also import Textfit like so:

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

@bhenning83
Copy link

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

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

7 participants