Open KatyHwang opened 3 years ago
ReferenceError: window is not defined
at Object.
I encountered the same problem @KatyHwang. You can work around it by using Dynamic Import:
import dynamic from "next/dynamic";
const TimeLine = dynamic(() => import("react-gantt-timeline"), { ssr: false });
I am using the nextjs , the chart cannot show .
error msg:
Server Error ReferenceError: window is not defined
This error happened while generating the page. Any console logs will be displayed in the terminal window. Source external%20%22react-gantt-timeline%22 (1:0) @ Object.react-gantt-timeline