Chartjs-Error on Chart.js with Electron โ€“ Failed to create chart: can't acquire context from the given item

1๐Ÿ‘

A bit late but maybe this will help other people with the same problem.
I had the same problem and i got it working by moving the

ctx = document.getElementById("chart").getContext("2d");

inside the preload.js
it seems that you cant pass a domobject from renderer.js to preload.js

Leave a comment