creativetimofficial / material-tailwind

@material-tailwind is an easy-to-use components library for Tailwind CSS and Material Design.
https://material-tailwind.com/
MIT License
3.51k stars 306 forks source link

Default export errors #558

Open mkilpatrick opened 5 months ago

mkilpatrick commented 5 months ago

Since the project is exported as CJS we need to use the default export. In Vite SSR mode, this leads to the following error.

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.