Skip to content

Upgrade to @mui/x-date-pickers v8 #442

Description

@a-man-called-q

I know you had changed it on 14 - April - 2025 which was few days ago.

but I got an error when I use @mui/x-date-pickers version 8.0.0

in your code :

import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFnsV3";

the new documentation :

// with date-fns v3.x or v4.x
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
// with date-fns v2.x
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV2';
// with date-fns v3.x or v4.x
import { de } from 'date-fns/locale/de';
// with date-fns v2.x
import de from 'date-fns/locale/de';

<LocalizationProvider dateAdapter={AdapterDateFns} adapterLocale={de}>
  {children}
</LocalizationProvider>;

I changed it to import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns'; and it works.

Please don't kill me 😅

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