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
If you're using SSR, the environment lacks DOM globals, but the dependencies are treated like in the browser environment. In your code, you're assigning an empty object to the document:
that.document = {};
which is a serious hazard and can simply crash any code depending on this. Here's an example of one of my dependencies (store.js):
Based on this fact I've prepared a quick & dirty fix: feimosi@6a58481
Would be great if you could incorporate it into the next release or suggest a better solution.
The text was updated successfully, but these errors were encountered:
If you're using SSR, the environment lacks DOM globals, but the dependencies are treated like in the browser environment. In your code, you're assigning an empty object to the document:
which is a serious hazard and can simply crash any code depending on this. Here's an example of one of my dependencies (store.js):
Seems like React's SSR uses
node-process
which sets the browser property onprocess
object:https://github.com/defunctzombie/node-process/blob/master/browser.js#L156
Based on this fact I've prepared a quick & dirty fix:
feimosi@6a58481
Would be great if you could incorporate it into the next release or suggest a better solution.
The text was updated successfully, but these errors were encountered: