Closed timendez closed 1 year ago
I had to wrap window
in:
if (typeof window !== "undefined") {
var halfScreenHeight = window.innerHeight / 2;
}
Thanks, I will work on it. Be free to propose your solution on PR.
UPD: аdd type guards for "window" but keep it open until trying on Next.js.
Hi, I know I am a bit late! But, I've fixed this issue by importing the module dynamically using dynamic from "next/dynamic"
From a fresh install, if I try to build I get that compile error