window is not defined
freshlybreemed opened this issue · 1 comments
Hello,
I'm getting this error on a react-stripe-elements integration. PLS help!
new Provider /Users/macbookpro/Documents/Repos/crank-karaoke/node_modules/react-stripe-elements/lib/components/Provider.js:70:7 processChild /Users/macbookpro/Documents/Repos/crank-karaoke/node_modules/react-dom/cjs/react-dom-server.node.development.js:2846:14 resolve /Users/macbookpro/Documents/Repos/crank-karaoke/node_modules/react-dom/cjs/react-dom-server.node.development.js:2812:5 ReactDOMServerRenderer.render /Users/macbookpro/Documents/Repos/crank-karaoke/node_modules/react-dom/cjs/react-dom-server.node.development.js:3202:22 ReactDOMServerRenderer.read /Users/macbookpro/Documents/Repos/crank-karaoke/node_modules/react-dom/cjs/react-dom-server.node.development.js:3161:29 renderToString /Users/macbookpro/Documents/Repos/crank-karaoke/node_modules/react-dom/cjs/react-dom-server.node.development.js:3646:27 render /Users/macbookpro/Documents/Repos/crank-karaoke/node_modules/next-server/dist/server/render.js:42:16 renderPage /Users/macbookpro/Documents/Repos/crank-karaoke/node_modules/next-server/dist/server/render.js:102:16
@freshlybreemed I cannot see the entire stack error but usually a window is not defined
happens when react runs server side. If the issue is with a react-stripe-elements
maybe you need a workaround or check if they support Server Side rendering by configuration.