Next.js Discord

Discord Forum

You cannot dot into a client module from a server component

Answered
aprilia posted this in #help-forum
Open in Discord
Answered by Spot-billed Duck
wrap
the
whole
thing
View full answer

18 Replies

please dont force me to wrap this whole thing into a client component 😔
anyother solution than that ?
@aprilia anyother solution than that ?
Spot-billed Duck
wrap
the
whole
thing
Answer
Hmmmm
Spot-billed Duck
yeah, that's annoying
is it considered a limitation for now or we can expect nextjs to do better in this area in near future ?
Spot-billed Duck
I don't think, that is related to your code architecture
🙂
@aprilia is it considered a limitation for now or we can expect nextjs to do better in this area in near future ?
This is really more a compatibility issue between MUI and react 18, not necessarily related to next
I see, i got confused by seeing the error message so thought its related to nextjs
ah got it
Maybe creating a separate component that only contains that MUI component or making a client provider would help
Iike wailroth said i wrapped up the whole thing
Just the timeline component or the entire page?
just the timeline component
I am in website and not in the discord app
will close this post a bit later