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
There are also other references to document, window and other browser specific components, that breaks the angular app if it is using server side rendering.
The text was updated successfully, but these errors were encountered:
We're not currently planning to support angular server side rendering. I'm not sure how it would work anyway. Are you able to avoid trying to use opentok.js when doing server side rendering? It doesn't really make sense to render a Publisher or Subscriber on the server side right?
Using opentok with angular server side rendering throws following error.
ReferenceError: window is not defined.
Error origin :
Exploring the code, I found that the error is originated from following function
var isOldIE = memoize(function () {
// Test for IE <= 9 as proposed by Browserhacks
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
// Tests for existence of standard globals is to allow style-loader
// to operate correctly into non-standard environments
// @see webpack-contrib/style-loader#177
return window && document && document.all && !window.atob;
});
There are also other references to document, window and other browser specific components, that breaks the angular app if it is using server side rendering.
The text was updated successfully, but these errors were encountered: