Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Meta] Server side rendering / SSR #5419

Open
2 of 6 tasks
Tracked by #7630
chandlerprall opened this issue Nov 29, 2021 · 8 comments
Open
2 of 6 tasks
Tracked by #7630

[Meta] Server side rendering / SSR #5419

chandlerprall opened this issue Nov 29, 2021 · 8 comments
Labels
developer experience meta task A task associated with a larger Meta issue

Comments

@chandlerprall
Copy link
Contributor

chandlerprall commented Nov 29, 2021

Issue description updated by @tkajtoch.

Summary

Server Side Rendering (SSR) isn't currently officially supported by EUI despite the effort made in the past to make it so. We know that some internal and external teams already use our components and utilities on the server side, and we want to provide official support for this feature.

We've already made some improvements in the past and fixed reported bugs related to SSR as they came, but we have yet to take the time and effort to confirm EUI is 100% SSR compatible.

Acceptance Criteria

  • All EUI components should be SSR compatible
  • There should be no hydration errors related to unique ID generation, DOM nesting, and others when rendering EUI components
  • A documentation page should be added to guide users on how to use EUI in server-side rendered environments as well as in Next.js

Tasks

  1. good first issue task tech debt
  2. stale-issue stale-issue-closed tech debt
  3. bug developer experience
  4. task typescript
  5. task
    tkajtoch
  6. tkajtoch
@miukimiu
Copy link
Contributor

@chandlerprall should the following issue also be tracked here? #4807

@chandlerprall
Copy link
Contributor Author

@chandlerprall should the following issue also be tracked here? #4807

Done!

@bradennapier
Copy link

It is also erroring when you use EuiAccordion

@ghost
Copy link

ghost commented Aug 4, 2022

v62.1.0 SSR has stopped working with the error ReferenceError: window is not defined

@acidjunk
Copy link

I see: "We expect this feature to be completed before the end of October 2023." -> Is the planning on track?

@jlove-dev
Copy link

jlove-dev commented Dec 11, 2023

Team - is there any update on this? I've tried integrating Elastic UI with SSR but running into a lot of issues with CSS or HTMLElement throughout the library.

@JasonStoltz
Copy link
Member

Hello 👋 . We don't have plans to tackle this any time in the near future.

@mdefazio
Copy link
Contributor

Tried digging through this some more and still running up against the lovely ReferenceError: CSS not defined.

I no longer hit the CSS error when running dev, but now only on build.

Running
react: ^18,
next: 14.0.4,
eui: ^91.2.0

@JasonStoltz JasonStoltz added the task A task associated with a larger Meta issue label Mar 28, 2024
@github-actions github-actions bot added the Stale label Oct 4, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2024
@cee-chen cee-chen reopened this Oct 14, 2024
@cee-chen cee-chen removed the Stale label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience meta task A task associated with a larger Meta issue
Projects
None yet
Development

No branches or pull requests

8 participants