You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to follow the react example but got the following error
error Error [ReferenceError]: window is not defined
at Object. (/Users/ml/Development/Sites/ga-scheduler/node_modules/dhtmlx-gantt/codebase/dhtmlxgantt.js:13:218)
is there a working example with the latest version of Next?
The text was updated successfully, but these errors were encountered:
@murrayleysrgu, by default, Next.js runs the code with the server-side rendering. You cannot run Gantt that way as it is a client-side application and requires the Window object and DOM.
You will need to add the following line to the page with the Gantt configuration:
Is it possible to use this with Next.js?
I tried to follow the react example but got the following error
error Error [ReferenceError]: window is not defined
at Object. (/Users/ml/Development/Sites/ga-scheduler/node_modules/dhtmlx-gantt/codebase/dhtmlxgantt.js:13:218)
is there a working example with the latest version of Next?
The text was updated successfully, but these errors were encountered: