Material-table: Warnings about invalid prop type in cases where I do not specify type or I specify type

Created on 9 Jan 2019  路  2Comments  路  Source: mbrn/material-table

I get the following warning in my dev tools console.

Warning: Failed prop type: Invalid prop columns[0].type of value string supplied to MaterialTable, expected one of ["boolean","numeric","date","datetime","time","currency"].

The columns property is set as follows :
const columns = [
{
title: 'Name',
type: 'string',
render: rowData => rowData.first_name + ' ' + rowData.last_name,
searchable: true,
cellStyle: {fontSize: 14}
},
{
title: 'Title',
type: 'string',
render: rowData => rowData.title,
cellStyle: {fontSize: 14}
}
];
The documentation says the default is 'string'. This warning shows up even if I do not have the type property for the columns.

I also got another warning : "checkPropTypes.js:19 Warning: Failed prop type: Invalid prop title of type object supplied to MaterialTable, expected string.
in MaterialTable (created by ...)

bug

Most helpful comment

@aswamina , there was another bug that is The prop value is marked as required in MTableCell, but its value is undefined.. I fixed this one too. But this is not a blocking bug. So it will be in 1.14.0

All 2 comments

This is a props bug. I fixed it. It will be resolved in 1.13.0. You can ignore warning.

@aswamina , there was another bug that is The prop value is marked as required in MTableCell, but its value is undefined.. I fixed this one too. But this is not a blocking bug. So it will be in 1.14.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timrchavez picture timrchavez  路  3Comments

kfirshahar picture kfirshahar  路  3Comments

victorwvieira picture victorwvieira  路  3Comments

KKrisu picture KKrisu  路  3Comments

balibou picture balibou  路  3Comments