react-coverflow
react-coverflow copied to clipboard
ReferenceError: window is not defined
When I try to use coverflow it just says "ReferenceError: window is not defined" and it doesn't work.
I am using react with nextjs. For now, I found a hotfix using `let Carousel = null;
try { if (global.window) { Carousel = require("react-coverflow"); } } catch (error) { console.log("!coverflow-error ", error); }`
but it's still showing me a warning Warning: Expected server HTML to contain a matching <div> in <div>. .
Is there any better solution?