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

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

Open
PaddyLock opened this issue Oct 21, 2019 · 5 comments

Comments

@PaddyLock
Copy link

PaddyLock commented Oct 21, 2019

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
Copy link
Contributor

afilp commented Dec 2, 2019

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

@BepaTest
Copy link

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
Copy link

Same problem

@sbyeol3
Copy link

sbyeol3 commented Apr 3, 2020

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

@Edu4rdoCarlos
Copy link

same problem

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

6 participants