[theme] Fails when combining @chakra-ui/react and @material-ui/core
See original GitHub issueTypeError: undefined is not a function
It fails here: https://github.com/mui-org/material-ui/blob/next/packages/material-ui/src/Autocomplete/Autocomplete.js#L340
- The issue is present in the latest release aka alpha
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
<Autocomplete />
component can’t be opened.
Expected Behavior 🤔
<Autocomplete />
should work with chakra and material ui 😃
Steps to Reproduce 🕹
https://codesandbox.io/s/frosty-browser-694e6?file=/src/App.js
Steps:
- Try to open
Autocomplete
component
Context 🔦
I am using @material-ui/core and @chakra-ui/react in the same application (which might not be the best but that is a different topic). Looks like with the release of version 5 and some changes to the theme/styling the Autocomplete component broke.
Your Environment 🌎
`npx @material-ui/envinfo`
System:
OS: macOS 10.15.7
Binaries:
Node: 15.12.0 - ~/.nvm/versions/node/v15.12.0/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 7.6.3 - ~/.nvm/versions/node/v15.12.0/bin/npm
Browsers:
Chrome: 89.0.4389.128
Edge: Not Found
Firefox: 86.0
Safari: 14.0.2
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:22 (12 by maintainers)
Top Results From Across the Web
Not able to create theme using Material UI's ThemeProvider ...
Attempted import error: 'createTheme' is not exported from '@material-ui/core/styles'. Code: import React, { Suspense, lazy } from "react"; ...
Read more >Advanced Theming - Chakra UI
When adding new components, component variations, sizes, colors and other theme foundations, you can extend the internal theme typings to provide autocomplete ...
Read more >Extend Material-UI theme in TypeScript - In Plain English
Combination of React and TypeScript is super powerful and beautiful. So it was meant to be that two of them met.
Read more >Chakra UI: Sleek UI Components for React - KnowledgeHut
Components are simple to edit, expand, and theme. Components are small and easy to combine to construct larger structures.
Read more >chakra-ui/react vs @mantine/core vs @material ... - npm trends
@chakra-ui/react vs @mantine/core vs @material-ui/core vs @mui/material ... As such, you need to ensure you are using the correct combination of versions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue is still present for latest mui and Chakra-ui version. If someone has found a solution, I’m interested.
This is like cake. Move inside the chakra user interface. The problem will be solved. 🐧
Sandbox link: https://codesandbox.io/s/eloquent-hopper-e2upeh?file=/src/App.js:0-1026