titra icon indicating copy to clipboard operation
titra copied to clipboard

Error when showing Charts

Open AndreasBomholtz opened this issue 2 years ago • 2 comments

When I look on the Charts page, I can see this error in the console:

Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
    at i.value (/node_modules/frappe-charts/dist/frappe-charts.min.umd.js:1:35122)
    at i.value (/node_modules/frappe-charts/dist/frappe-charts.min.umd.js:1:34642)
    at ResizeObserver.boundDrawFn (/node_modules/frappe-charts/dist/frappe-charts.min.umd.js:1:33495)

AndreasBomholtz avatar Mar 16 '22 10:03 AndreasBomholtz

Thanks for reporting this issue. Unfortunately this is caused by the library we use to render the charts so we will have to create an issue for the library at https://github.com/frappe/charts. I don't think there is anything we can do on the titra side to prevent this but I am always open for suggestions!

faburem avatar Mar 17 '22 13:03 faburem

The error is also viewable on the docker logs not only on the user browser console:

image

Also by default the Time distribution by task chart is not rendered

image

But as soon as you open the JS dev console, the chart appears

image

noraj avatar Jul 04 '22 10:07 noraj

Closing this issue since there is nothing we can do about it until the root cause is fixed in frappe-charts upstream.

faburem avatar Sep 28 '22 11:09 faburem