error when accessing accessorKey

Hello, Im tryng to get the accessorKey property from each row and i get the following error:
Property 'accessorKey' does not exist on type 'ColumnDef<TData, unknown>'.
  Property 'accessorKey' does not exist on type 'ColumnDefBase<TData, unknown> & StringHeaderIdentifier'.ts(2339)

though in the docs it says that its accessible, here is my code:
{rowSelection?.getVisibleCells().map((cell) => (
                                <span className="w-min" key={cell.id}>
                                    {cell.column.columnDef.accessorKey}:
                                    {flexRender(
                                        cell.column.columnDef.cell,
                                        cell.getContext()
                                    )}
                                </span>
                            ))}
Was this page helpful?