Not able to use Date Picker in React

Getting the following issue when trying to import Date Picker in my react application

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it’s defined in, or you might have mixed up default and named imports.

We recommend upgrading to @patternfly/react-core@^4.82.2 since DatePicker has had its dependencies removed and been moved to react-core. Then import { DatePicker } from '@patternfly/react-core'; should no longer throw the error you’re seeing.


Upgraded to @patternfly/react-core@^4.82.2 . Its working fine now. Thanks !!!