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
- Chartjs-Changing grid color in radar chart
- Chartjs-Why are some react-chartjs-2 options being ignored?
Source:stackexchange.com