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 307 forks source link

Next JS 14 Can't use material-tailwind components in server components #524

Open shailendra0102 opened 6 months ago

shailendra0102 commented 6 months ago

Whenever i try to add tailwind components in my server components the build is broken with the error. To fix this each time i have to make this as client component using 'use client' .Screenshot attached

Screenshot 2023-12-07 at 10 47 10 PM

Screenshot 2023-12-07 at 10 47 44 PM Screenshot 2023-12-07 at 10 48 02 PM

don-esteban commented 6 months ago

Did You see this? https://www.material-tailwind.com/docs/react/guide/next#with-server-components

lianshus commented 3 months ago

i do this. but it didn't work. i don't know how to fix it, do you hava any more idea? image

mghako commented 1 month ago

same here waiting for solutions xD