skip to Main Content

What causes “Received NaN for width attr” error in gantt-task-react when adding tasks in React?

Received NaN for the `width` attribute. If this is expected, cast the value to a string. at rect at g at BarDisplay2 (http://127.0.0.1:5173/node_modules/.vite/deps/gantt-task-react.js?v=a26a2daa:1229:16) at g at Bar2 (http://127.0.0.1:5173/node_modules/.vite/deps/gantt-task-react.js?v=a26a2daa:1279:19) at g at TaskItem2 (http://127.0.0.1:5173/node_modules/.vite/deps/gantt-task-react.js?v=a26a2daa:1428:41) at g at g at TaskGanttContent2 (http://127.0.0.1:5173/node_modules/.vite/deps/gantt-task-react.js?v=a26a2daa:1499:20)…

VIEW QUESTION

Does useEffect in Reactjs fetch data based on URL changes?

I am using two URLs: localhost:3000/content localhost:300/content/<projectId>. My routes are: <Route path="/content" element={ <RequireAuth> <ContentPage /> </RequireAuth> } /> <Route path="/content/:projectId" element={ <RequireAuth> <ProjectPage /> </RequireAuth> } /> When I am going sequentially, its working perfectly. But when I am…

VIEW QUESTION
Back To Top
Search