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

DatagridBody is not exported from react-admin #2637

Closed
hamidfzm opened this issue Dec 9, 2018 · 1 comment
Closed

DatagridBody is not exported from react-admin #2637

hamidfzm opened this issue Dec 9, 2018 · 1 comment

Comments

@hamidfzm
Copy link
Contributor

hamidfzm commented Dec 9, 2018

What you were expecting:
importing following statement:

import {DatagridBody as RaDatagridBody} from 'react-admin';

What happened instead:
Got following error:

Failed to compile.

./src/resources/Transaction/list/DatagridBody.js
Attempted import error: 'DatagridBody' is not exported from 'react-admin' (imported as 'RaDatagridBody').

Steps to reproduce:
Just import it :)

Other information:
As documented in https://marmelab.com/react-admin/List.html#the-datagrid-component, we can import datagrid body from react admin but it's not possible.

Environment

  • React-admin version: 2.5.1
@dalyr95
Copy link

dalyr95 commented Dec 10, 2018

Getting this issue as well.

import { DatagridBody } from 'react-admin';
console.log(DatagridBody);

is undefined

Exporting 'react-admin' the key is missing

DashboardMenuItem: (...)
Datagrid: (...)
DateField: (...)
DateInput: (...)
DateTimeInput: (...)
DeleteButton: (...)
DisabledInput: (...)

React Admin version "2.5.1"

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

2 participants