-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pickers] StaticDatePicker
throws an error when used inside <CssVarsProvider> from Joy UI
#13799
Comments
Hi, When you use Here is the updated demo, please let me know if it solves your problem 👍 |
StaticDatePicker
thro errors when used inside <CssVarsProvider> from Joy UI
StaticDatePicker
thro errors when used inside <CssVarsProvider> from Joy UIStaticDatePicker
throw an error when used inside <CssVarsProvider> from Joy UI
StaticDatePicker
throw an error when used inside <CssVarsProvider> from Joy UIStaticDatePicker
throws an error when used inside <CssVarsProvider> from Joy UI
It did solve my problem, plus I have found this page in the docs that can be helpful |
Awesome, closing the issue then 👍 |
@TooMuchLagWillKillYou: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: demo to reproduce
Steps:
Current behavior
I have notice that when you put
<StaticDatePicker />
inside<CssVarsProvider>
a bunch of errors are thrown. The first one says "Cannot read properties of undefined (reading 'duration')".I tried the same thing with the basi component and the result is the same, though I haven't tested with the other type of pickers.
In the demo provided you can see that when
<StaticDatePicker />
is placed outside<CssVarsProvider>
it work flawlessy.Is this expected? What could be the drawback of not wrapping the application in
<CssVarsProvider>
?Expected behavior
I would expect no errors even if the
<StaticDatePicker />
component is inside<CssVarsProvider>
Context
I am developing a React application bundled with the latest version of Vite. I usually use Microsoft Edge but I was able to reproduce the issue with Chrome.
I also have tried to update every single dependency but the output is the same
Your environment
npx @mui/envinfo
Search keywords: datepicker, vite, mui/joy
The text was updated successfully, but these errors were encountered: