mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.05k stars 1.25k forks source link

[DateCalendar] error when trying to use DateCalendar #11811

Open ye11eb opened 7 months ago

ye11eb commented 7 months ago

Steps to reproduce

Link to live example: (required)

Steps: 1.npm install @mui/material @emotion/react @emotion/styled 2.import dayjs from 'dayjs'; import { DemoContainer, DemoItem } from '@mui/x-date-pickers/internals/demo'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { DateCalendar } from '@mui/x-date-pickers/DateCalendar';

Current behavior

have an error : export ERROR in ./node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar.js 310:56-68 export 'YearCalendar' (imported as 'YearCalendar') was not found in '../YearCalendar' (module has no exports)

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo ``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```

Search keywords: DateCalendar YearCalendar

michelengelen commented 7 months ago

Please provide a minimal reproduction test case with the latest version. This would help a lot 👷.

A live example would be perfect. This codesandbox.io template may be a good starting point. You can find more codesandbox templates in our docs.

Thank you! 🙇🏼