react-modal-video
react-modal-video copied to clipboard
ReferenceError: window is not defined at new ModalVideo
How to properly handle provider with SSR ? I'm having this throwing error.
ReferenceError: window is not defined at new ModalVideo (react-modal-video/lib/index.js:35:76)
import dynamic from 'next/dynamic'; const ModalVideo = dynamic(() => import('react-modal-video'), { ssr: false });
// Use this way
I faced the same issue in Gatsby while upgrading from 1.2.7 to 1.2.8, also downgrading to 1.2.7 seems to solve the problem
@MattFanto Sorry for late reply. Could you please check https://www.gatsbyjs.com/docs/debugging-html-builds/ ?