react-timeline-gantt icon indicating copy to clipboard operation
react-timeline-gantt copied to clipboard

Updating a component in webpack-dev-server causes Uncaught TypeError

Open robd518 opened this issue 5 years ago • 4 comments

When using react-timeline-gantt in webpack-dev-server, a hot reload triggers the following during rendering:

index.js:1 Uncaught TypeError: Cannot assign to read only property 'backgroundColor' of object '#<Object>' at e.value (index.js:1) at e.value (index.js:1) at e.value (index.js:1) at e.value (index.js:1) at e.load (index.js:1) at new t (index.js:1) at constructClassInstance (react-dom.development.js:11361) at updateClassComponent (react-dom.development.js:14687) at beginWork (react-dom.development.js:15644) at performUnitOfWork (react-dom.development.js:19312)

robd518 avatar May 20 '19 23:05 robd518

I experienced same problem... caused by config object. I am showing and hiding component and first time it shows, there is no error, also when navigate to different page and them open page again error occur. Whenever component re-rendered there is error.

oliska avatar May 21 '19 18:05 oliska

Yup, started using this package recently -- same error here. On any re-render the error gets thrown. In my case, I'm using react router. When I change routes and go back to the page with the timeline component, this error appears.

It is worth noting, that I am only seeing it when setting taskList section in the config. If I comment out that section and leave all my other custom configurations, this issue does not occur.

adback03 avatar Sep 09 '19 19:09 adback03

I'm also getting this issue.

SharePointPro avatar Dec 04 '19 01:12 SharePointPro

Also getting this issue

jonnoevans avatar Apr 21 '20 18:04 jonnoevans