vascofg / react-admin-date-inputs

Date Inputs for react-admin
MIT License
68 stars 78 forks source link

You are calling withTheme(Component) with an undefined component. You may have forgotten to import it. #35

Open PaddyLock opened 5 years ago

PaddyLock commented 5 years ago

If I try and use with react-admin

import { DateTimeInput } from 'react-admin-date-inputs';

with

<DateTimeInput label="Start" options={{ format: 'DD/MM/YYYY, HH:mm:ss', ampm: false, clearable: true }} />

Error: You are calling withTheme(Component) with an undefined component. You may have forgotten to import it.

I have the following dependancies

"dependencies": {
    "@material-ui/core": "^4.5.1",
    "@material-ui/icons": "^4.5.1",
    "axios": "^0.18.0",
    "date-fns": "^2.5.1",
    "filepond": "^4.7.2",
    "jwt-decode": "^2.2.0",
    "prop-types": "^15.7.2",
    "ra-data-json-server": "^2.9.8",
    "ra-data-simple-rest": "^2.6.2",
    "react": "^16.10.2",
    "react-admin": "^2.9.8",
    "react-admin-date-inputs": "^1.1.2",
    "react-beautiful-dnd": "^11.0.3",
    "react-dom": "^16.10.2",
    "react-draggable-list": "^4.0.2",
    "react-filepond": "^7.0.1",
    "react-player": "^1.10.0",
    "react-scripts": "^3.2.0",
    "redux": "^4.0.1",
    "video-react": "^0.13.6"
  },
afilp commented 4 years ago

Have you managed to solve this? I have the same problem after upgrading to react-admin 3.0

BepaTest commented 4 years ago

Hello! I've got the same issue. Did anyone find a solution? I guess it's about material-ui versions incompatibility

"dependencies": {
    "@date-io/date-fns": "^1.3.13",
    "@material-ui/core": "^4.3.3",
    "@material-ui/pickers": "^3.2.8",
    "date-fns": "^2.10.0",
    "ra-i18n-polyglot": "^3.2.3",
    "ra-input-rich-text": "^2.3.0",
    "ra-language-french": "^3.2.0",
    "react": "^16.5.1",
    "react-admin": "^2.9.9",
    "react-admin-date-inputs": "^1.1.4",
    "react-admin-firebase": "^0.8.1",
    "react-dom": "^16.5.1",
    "react-scripts": "1.1.5",
    "redux-saga": "^0.16.0"
  }
nacimgoura commented 4 years ago

Same problem

sbyeol3 commented 4 years ago

same problem occurs :( "react-admin": "^3.1.2",

Edu4rdoCarlos commented 1 year ago

same problem