-
Notifications
You must be signed in to change notification settings - Fork 832
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
Typescript: material-ui-pickers/typings/overrides does not exist #1794
Comments
Linking to mui/material-ui#19427 as very much related. |
I suppose its because you are trying to import |
Oh sorry, that was a typo. I changed it to |
@dmtrKovalenko Did #1796 solve this issue? |
I think no, |
@MuratGT Please provide a full reproduction test case. This would help a lot 👷 . |
It doesn't throw an error if downgrade to mui core 4.10.0 (#1849): There is an issue with missing typings, but it will be fixed in the next release |
You don't get this error?
|
Yes, but it is not the same as "Typescript: material-ui-pickers/typings/overrides does not exist" in issue title. If so it is fixed by #1796 |
I have updated the dependencies of the reproduction of @MuratGT: https://codesandbox.io/s/sparkling-wildflower-6e8wx?file=/src/timerange.test.tsx. This gives us the reported error:
Now, if we apply the guidelines in https://next.material-ui-pickers.dev/guides/css-overrides#typescript, the error is gone: https://codesandbox.io/s/youthful-architecture-f8m19?file=/src/timerange.test.tsx. The bug was fixed 👌. |
How do I extend the overrides with the material-picker overrides? This does not work since
MuiPickersDateRangePickerInput
cannot be found in the core overrides.I can fix it by asserting it
as any
, but this I don't want to.Version:
"@material-ui/pickers": "4.0.0-alpha.5"
The text was updated successfully, but these errors were encountered: