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

Can not process element without height. Make sure the element is displayed and has a static height. #35

Open
joshpitzalis opened this issue May 2, 2018 · 8 comments

Comments

@joshpitzalis
Copy link

This console error only comes up when I run unit tests.

I have tried adding a height to the component, wrapping in a span with a height, encasing a span with a height. No luck. Any suggestions for removing this warning?

@pioz
Copy link

pioz commented Nov 12, 2019

Any update?

@aonawale
Copy link

I have same issue. You have to explicitly set height style on the component for multi mode to work.

@juliankigwana
Copy link

I have the same, it works in that it resizes the text as expected, but triggers all these warnings in the console.
Ideally the warnings should be removed from the source code, but in the mean time I have created a nasty hack.

height: "calc(100% + 1px)"

@TomPlum
Copy link

TomPlum commented Jul 24, 2021

I'm getting the same thing in single mode. Littering my test run with literally hundreds of warnings. Destroys my terminal performance, fills the buffer and makes it very difficult to see legitimate problems 😢

@berzi
Copy link

berzi commented Jan 19, 2022

Same here, even in single mode. Is this even maintained anymore?

@TomPlum
Copy link

TomPlum commented Jan 19, 2022

@berzi I ended up forking it and removing the warning. It's here if you wanna switch over https://www.npmjs.com/package/@tomplum/react-textfit

@Hrushi01
Copy link

Any updates? I am new to JEST and I am getting same issue

@papaya-reader
Copy link

@berzi I ended up forking it and removing the warning. It's here if you wanna switch over npmjs.com/package/@tomplum/react-textfit

thanks for the repo. but yours has this issue with Typescript 'Textfit' only refers to a type, but is being used as a value here

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

8 participants