react-timeline-gantt
react-timeline-gantt copied to clipboard
Updating a component in webpack-dev-server causes Uncaught TypeError
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)
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.
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.
I'm also getting this issue.
Also getting this issue