You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use Calendar with MuiPickersUtilsProvider and useStaticState as per example
Expected behavior
Calendar to be displayed
Actual behavior
Error
Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports. Recommendation: use named imports from the module index.
This sounds related to, if not a duplicate of #1650. Also, we have moved our effort to v4, we don't support v3. Can you reproduce the issue on http://next.material-ui-pickers.dev/?
I updated my code to use v4, replaced Calendar with StaticDatePicker and MuiPickersUtilsProvider with LocalizationProvider as per new docs, and everything worked.
Environment
Steps to reproduce
Trying to use
Calendar
withMuiPickersUtilsProvider
anduseStaticState
as per exampleExpected behavior
Calendar to be displayed
Actual behavior
Error
Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports. Recommendation: use named imports from the module index.
Live example
https://codesandbox.io/s/fancy-paper-x0pcx?file=/src/App.js
The text was updated successfully, but these errors were encountered: