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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

MUI X Date Pickers Pro not working with Joy UI #36506

Closed
2 tasks done
viktorbasta opened this issue Mar 13, 2023 · 1 comment
Closed
2 tasks done

MUI X Date Pickers Pro not working with Joy UI #36506

viktorbasta opened this issue Mar 13, 2023 · 1 comment
Labels
component: pickers This is the name of the generic UI component, not the React module!

Comments

@viktorbasta
Copy link

viktorbasta commented Mar 13, 2023

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 馃暪

Link to live example:
https://codesandbox.io/s/mui-joy-mui-x-date-pickers-pro-not-working-vmzlvy?file=/src/App.tsx

Steps:

  1. Install latest versions of Joy UI and Date Pickers Pro X
  2. Insert LocalizationProvider as a child of CssVarsProvider
  3. Insert DateRangePicker as a child of LocalizationProvider

Versions:

"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@mui/joy": "5.0.0-alpha.70",
"@mui/material": "5.11.12",
"@mui/x-date-pickers-pro": "6.0.1",

Current behavior 馃槸

Undefined property errors:

TypeError Cannot read properties of undefined (reading 'create')
TypeError Cannot read properties of undefined (reading 'borderRadius')

Expected behavior 馃

DatePicker should appear and no errors should be shown.

Context 馃敠

Trying to use a Date Picker Pro X in a Joy UI project. This worked before with other versions, but I cannot for the life of me reproduce a working version.

Your environment 馃寧

No response

@viktorbasta viktorbasta added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Mar 13, 2023
@viktorbasta viktorbasta changed the title X-Date-Pickers-Pro not working with Joy UI MUI X Date Pickers Pro not working with Joy UI Mar 13, 2023
@viktorbasta
Copy link
Author

viktorbasta commented Mar 13, 2023

Problem was because of breaking changes in #35739. Had to merge mui theme like is done here: Joy UI feat. Material UI sandbox

@zannager zannager added component: pickers This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

2 participants