Skip to content

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

Description

@PaddyLock

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"
  },

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions