You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in the process of converting an existing Angular app where we were using Orejime, to a Server Side Rendered one out of necessity.
However, since the window object does not exist in the server, Orejime, specifically is breaking on the language function due to the usage of window.language (and document.documentElement.lang for the same reason that document does not exist).
Is a fix/workaround possible?
function language() {
return window.language || document.documentElement.lang || "en";
}
The text was updated successfully, but these errors were encountered:
Hi,
Did you consider loading Orejime on the client only?
I don't think there is a great benefit in prerendering it. Also, it is not really designed to be used on the server because it relies heavily on DOM APIs to update elements in the page.
I'm in the process of converting an existing Angular app where we were using Orejime, to a Server Side Rendered one out of necessity.
However, since the window object does not exist in the server, Orejime, specifically is breaking on the language function due to the usage of window.language (and document.documentElement.lang for the same reason that document does not exist).
Is a fix/workaround possible?
The text was updated successfully, but these errors were encountered: