Skip to content

Conversation

numito
Copy link

@numito numito commented Sep 19, 2024

Fix server side rendering issue error: cannot dot into client component from server component.

@gg-phntms
Copy link
Contributor

@numito thanks for this - could you share a codepen/minimal reproducible example of the error?

@numito
Copy link
Author

numito commented Apr 1, 2025

@gg-phntms
Of course, bootstrap a next project. You need 2 components:

  • a client component using css-components (a component that use useEffect)
  • a server component importing the client component

I will try to create a sample project with the issue and send it to you before the end of the week.

This setup will trigger the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants