Skip to content

[docs] Fix codesandbox export with dayjs#34619

Merged
oliviertassinari merged 1 commit intomui:masterfrom
oliviertassinari:fix-dayjs-codesandbox
Oct 5, 2022
Merged

[docs] Fix codesandbox export with dayjs#34619
oliviertassinari merged 1 commit intomui:masterfrom
oliviertassinari:fix-dayjs-codesandbox

Conversation

@oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Oct 5, 2022

Since mui/mui-x#5481 the bug is a lot more visible. When you export a codesandbox from https://mui.com/x/react-date-pickers/date-picker/#basic-usage

Screenshot 2022-10-05 at 11 19 14

you will get https://codesandbox.io/s/3sem4m?file=/package.json:161-172

Screenshot 2022-10-05 at 11 19 44

but this package doesn't exist. Dayjs already includes the types, proof: https://unpkg.com/browse/dayjs@1.11.5/index.d.ts.


I found this while I was doing a bit of support in https://groups.google.com/a/mui.com/g/x/c/xHe-_HUVhjc.

@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation. label Oct 5, 2022
@mui-bot
Copy link

mui-bot commented Oct 5, 2022

No bundle size changes

Generated by 🚫 dangerJS against dbe0b00

@oliviertassinari oliviertassinari merged commit f235e8e into mui:master Oct 5, 2022
@oliviertassinari oliviertassinari deleted the fix-dayjs-codesandbox branch October 5, 2022 09:55
@flaviendelangle
Copy link
Member

Will be applied to MUI-X in mui/mui-x#6103

@oliviertassinari oliviertassinari added the scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305). label Oct 5, 2022
alexfauquette pushed a commit to alexfauquette/material-ui that referenced this pull request Oct 14, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
feliperli pushed a commit to jesrodri/material-ui that referenced this pull request Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation. MUI X scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants