-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings. #3053
Comments
You have a typo in your code snippet ;)
This results in an |
Oh lol head slap. Thanks! |
Why is this closed? The documentation is still in conflict with the examples. We haven't been able to get this to work with our existing data set at all. |
In this particular case, it was really just the typo. You can pass string headers as long as you set |
Thanks. This typo had got my head spinning for days. |
Thanks. I had a trailing white space in one of the header columns. |
I'm using Typescript in a React project and I follow the example for creating a table on the Live Demo site but I get the following error:
getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.
I check the type of the arguments for
.table()
and theheaders
argument isstring[]
which is unexpected because the demo is usingobject[]
. I change to the type asked for by the argument but I still get the same error.Below is an MCVE in node:
The text was updated successfully, but these errors were encountered: