question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PropTypes warning from ColumnDefinition

See original GitHub issue

Griddle version

1.8.0 and 1.11.1 tested

Expected Behavior

No warnings

Actual Behavior

Warning: Component ColumnDefinition declared PropTypes instead of propTypes. Did you misspell the property assignment?

Steps to reproduce

Create a griddle that uses ColumnDefinition component

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
bouzafrcommented, Feb 16, 2018

Hello,

I’m getting this error now:

Warning: Failed prop type: Invalid prop 'customComponent' of type `function` supplied to `ColumnDefinition`, expected `object`.

example code:

...
const customColumn = ({value}) => <span>{value}</span>;
columns.push(<ColumnDefinition key={key} id={key} title={title} customComponent={customColumn}/>);
...

Anything that I’m missing? I’m using 1.11.2

0reactions
mkotarcommented, May 28, 2020

I am still getting similar error with 1.13.1 - any idea how to fix it ?

Failed prop type: Invalid prop customComponent of type object supplied to ColumnDefinition, expected function. in ColumnDefinition

when i remove the enhancedComponent all works like it should and no further errors are present

Read more comments on GitHub >

github_iconTop Results From Across the Web

PropTypes of specific component? - Stack Overflow
instanceOf(Column) not work like I expect? How am I supposed to specify that ColumnContainer will only accept children of type Column ?
Read more >
Don't Call PropTypes Warning - React
In this case, ThirdPartyPropTypes.deprecated is a wrapper calling PropTypes.bool . This pattern by itself is fine, but triggers a false positive because React ......
Read more >
Columns Props · react-bootstrap-table2
colIndex : The index of the current column being processed in BootstrapTable . Return value. A new Object will be the result of...
Read more >
react is missing in props validation - You.com | The AI Search ...
propTypes = { column: PropTypes.shape({ title: PropTypes.string }) }; ... aren't using the correct type that we assigned, we will get a console...
Read more >
Specify Types of Props With PropTypes - Intermediate React
The PropTypes library allows you to declare the type of props you expect to get from your components and trigger a warning if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found