MUI X v6 does not get recognized correctly after build
Closed this issue · 0 comments
kac5a commented
Describe the bug
Locally, when you start your app, the datetime selector works properly, it generates a "standard" variant date picker from MUI X, but if you build the project and start it, or deploy it, the datetime picker is an outlined picker, and after selecting a date, the app crashes.
To Reproduce
- Create a MUI query builder
- Create a datetime field
- Build the project
- Select a date
Additional context
I checked the code, and in the packages/mui/modules/widgets/value/MuiDateTime.jsx
component, there is a check for isV6
. That might be the problem. If I use the same component, and set that value to true
, the component gets built properly.