:0
The reason I was using this method is because I am using the web framework svelte-kit and in the previous version of chart.js import Chart from 'chart.js/auto';
was not working for me due to the build step. I tried it again after upgrading to v4 and it appears to be working now. Thanks!