Skip to content
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

6.0.0 breaks with new @mui date pickers refactored changes #910

Closed
spntai opened this issue May 2, 2023 · 5 comments · Fixed by #951
Closed

6.0.0 breaks with new @mui date pickers refactored changes #910

spntai opened this issue May 2, 2023 · 5 comments · Fixed by #951

Comments

@spntai
Copy link

spntai commented May 2, 2023

  • The onChange fails to invoke.

MUI: The LocalizationProvider component was moved from @mui/lab to @mui/x-date-pickers.
You should use import { LocalizationProvider } from '@mui/x-date-pickers'
or import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'

@ukrbublik
Copy link
Owner

There no more imports from @mui/lab in 6.x

import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";

Could you please provide reproduction steps or sample code?

@spntai
Copy link
Author

spntai commented May 2, 2023

Upgraded mui/mui-x (from 5.x to 6.x) and RAQB (from 5.1.2 to 6.x). It was working fine earlier.

Install errors:
npm ERR! Found: @mui/[email protected]
npm ERR! node_modules/@mui/x-date-pickers
npm ERR! @mui/x-date-pickers@"^6.3.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @mui/x-date-pickers@"^5.0.0-beta.2" from @react-awesome-query-builder/[email protected]

From https://github.com/ukrbublik/react-awesome-query-builder/blob/master/packages/mui/package.json
..
"@mui/x-date-pickers": "^5.0.0",
"@types/react": "^17.0.39",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"sass": "^1.35.0"
},
"peerDependencies": {
"@emotion/react": "^11.7.1",
"@emotion/styled": "^11.6.0",
"@mui/icons-material": "^5.2.4",
"@mui/lab": "^5.0.0-alpha.60",
"@mui/material": "^5.2.4",
"@mui/x-date-pickers": "^5.0.0-beta.2",

@ukrbublik
Copy link
Owner

Ok, I will update my lib for MUI 6

@spntai
Copy link
Author

spntai commented May 3, 2023

Thank you.

@spntai
Copy link
Author

spntai commented May 11, 2023

Hello - Any ETA on the changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants