TurboRepo with NEXT and Material UI #8123
Unanswered
980vermarajput
asked this question in
Help
Replies: 1 comment
-
@980vermarajput, this doesn't seem to be turbo related issue. However, I have faced the same issue while using material UI. The issue is MUI components are not RSC so you need to manually add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I am using turbo in which I have three workspace packages, user and admin. I am using MUI as a design which I have installed in packages UI. There only i am making common components and setup the theme there only which i am exporting from there to be used in admin and user. but when i am importing any mui component in my apps. it is only rendering into client side components. on the server side components it is giving me error
"Error: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component"
but on the contrary if i use NEXT,js app independently it is able to render MUI components on server components.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions