Hello, First of all congratulations for the amazing library!
I am facing an issue that I cannot get around. (maybe lack of knowledge)
I am building an app with React (18.3.1) and NextJS (15.1.2)
I have a page with your example for the Gantt Chart
`"use client";
import Gantt from "wx-react-gantt";
import "wx-react-gantt/dist/gantt.css";
import React, { useRef, useEffect } from "react";
const MyGanttComponent = () => {
const tasks = [
{
id: 20,
text: "New Task",
start: new Date(2024, 5, 11),
end: new Date(2024, 6, 12),
duration: 1,
progress: 2,
type: "task",
lazy: false,
},
{
id: 47,
text: "[1] Master project",
start: new Date(2024, 5, 12),
end: new Date(2024, 7, 12),
duration: 8,
progress: 0,
parent: 0,
type: "summary",
},
{
id: 22,
text: "Task",
start: new Date(2024, 7, 11),
end: new Date(2024, 8, 12),
duration: 8,
progress: 0,
parent: 47,
type: "task",
},
{
id: 21,
text: "New Task 2",
start: new Date(2024, 7, 10),
end: new Date(2024, 8, 12),
duration: 3,
progress: 0,
type: "task",
lazy: false,
},
];
const links = [{ id: 1, source: 20, target: 21, type: "e2e" }];
const scales = [
{ unit: "month", step: 1, format: "MMMM yyy" },
{ unit: "day", step: 1, format: "d" },
];
return <Gantt tasks={tasks} links={links} scales={scales} />;
};
export default MyGanttComponent;`
I am always getting this error:
Next.js (15.1.2)
Unhandled Runtime Error
TypeError: undefined is not an object (evaluating 'ReactSharedInternals.ReactCurrentDispatcher')
Can anyone help me? Thanks in advance