-
Notifications
You must be signed in to change notification settings - Fork 841
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
EuiBreadcrumbs breaks SSR #3687
Comments
Solved for me: const EuiHeaderBreadcrumbs = dynamic( |
It looks like |
At present, EUI doesn't have an official support strategy for SSR. We'd like to get to a place where we do, but it's not currently prioritized on the roadmap. We'll fix (and happily accept PRs for) errors like these, but until there is a better testing framework in place for various app environments, they will likely continue to be one-off fixes. |
Closes elastic#3687. Put guards around references to `window` so that in an SSR environment, EUI will still work.
Closes elastic#3687. Put guards around references to `window` so that in an SSR environment, EUI will still work.
Closes #3687. Put guards around references to `window` in the breadcrumbs and collapsible nav components, so that EUI can still render in an SSR environment.
EuiBreadcrumbs
directly referenceswindow
without any guards. I found this because I tried upgrading EUI in next-eui-starter, and rendering the index page broke.Replicate in the starter repo with:
nvm use 14
(the next step upgrades a dependency that requires node >= 13.7)yarn upgrade --latest
yarn dev
The text was updated successfully, but these errors were encountered: