error-overlay-webpack-plugin icon indicating copy to clipboard operation
error-overlay-webpack-plugin copied to clipboard

SSR Support?

Open Ibrahimrahhal opened this issue 3 years ago • 1 comments

Ive tried to use this plugin within my SSR bundle config & It seems to be not supported on the server side with this error:- window.__REACT_ERROR_OVERLAY_GLOBAL_HOOK__=window.__REACT_ERROR_OVERLAY_GLOBAL_HOOK__| {},window.__REACT_ERROR_OVERLAY_GLOBAL_HOOK__.iframeReady=function ({re=!0,te=!1,ve()},"production"===process.env.NODE_ENV&&console.warn("react-error-overlay is not meant for use in production. You should ensure it is not included in your build to reduce bundle size.")}])})); ReferenceError: window is not defined at Object.<anonymous> ($PATH/node_modules/react-error-overlay/lib/index.js:1:216)

Ibrahimrahhal avatar Oct 07 '22 19:10 Ibrahimrahhal

I am sorry, I don't actively maintain this project. Feel free to submit a PR to fix it, else I can't help.

gregberge avatar Oct 08 '22 05:10 gregberge