altence / lightence-ant-design-react-template

Free and easy-to-use admin template based on React 17+
https://altence.com/lightence-landing
MIT License
994 stars 251 forks source link

TypeScript error in /src/pages/uiComponentsPages/forms/DateTimePickersPage.tsx(18,12) #245

Closed ujshaikh closed 1 year ago

ujshaikh commented 1 year ago

Describe the bug TypeScript error in /src/pages/uiComponentsPages/forms/DateTimePickersPage.tsx(18,12):

To Reproduce Steps to reproduce the behavior:

  1. Go to the root directory terminal
  2. Run command yarn start
  3. In the terminal you can see this issue

'DayjsDatePicker' cannot be used as a JSX component.

Its instance type 'Component<PickerProps & { status?: "" | "warning" | "error" | undefined; dropdownClassName?: string | undefined; popupClassName?: string | undefined; }, unknown, any> & CommonPickerMethods' is not a valid JSX element. The types returned by 'render()' are incompatible between these types. Type 'React.ReactNode' is not assignable to type 'import("/node_modules/@types/styled-components/node_modules/@types/react/index").ReactNode'. Type '{}' is not assignable to type 'ReactNode'.ts(2786)