viclafouch / mui-color-input

📌 A color input designed for MUI (Material ui) V6 built with TinyColor
https://viclafouch.github.io/mui-color-input/
60 stars 20 forks source link

MUI createTheme_default is not a function #15

Closed gabrielbuii closed 1 year ago

gabrielbuii commented 1 year ago

Hi!

Thank you for the amazing package, really appreciate it!:) However, I encountered an issue after installing it.

Describe the bug Uncaught TypeError: createTheme_default is not a function at Box.js:6:22

Screenshots Screenshot from 2023-05-17 15-50-25

box

Should fix it: Following this stackoverflow post, if we replace the import Box from '@mui/material/Box'; to import { Box } from '@mui/material'; in
ColorPopoverBody.tsx

then it should fix it.

Desktop:

Additional context Versions of MUI packages we use in a project:

 "@emotion/cache": "^11.11.0",
 "@emotion/react": "^11.11.0",
 "@emotion/styled": "^11.11.0",
 "@mui/icons-material": "^5.11.16",
 "@mui/lab": "^5.0.0-alpha.129",
 "@mui/material": "^5.13.1",
 "@mui/x-date-pickers": "^6.4.0",
viclafouch commented 1 year ago

hey @gabrielbuii !

Humm don't think that the real issue here.. In a sandbox with the last versions of all package, it's still working for me :/

gabrielbuii commented 1 year ago

@viclafouch You are right, it was a Vite issue. Sorry for that. I will close both the issue and the pr.