You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script src="https://cdn.jsdelivr.net/npm/chart.js/dist/chart.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.bundle.min.js"></script>
``` in my code
chart.min.js:13 Uncaught SyntaxError: Cannot use import statement outside a module (at chart.min.js:13:1)
The text was updated successfully, but these errors were encountered:
Chart.js v4 doesn't include chart.min.js in dist, but jsDelivr returns the auto-generated minified version of chart.js which is the ESM file in v4, so this causes the error above. You can use the UMD file as follows:
i get this error whenever i add
chart.min.js:13 Uncaught SyntaxError: Cannot use import statement outside a module (at chart.min.js:13:1)
The text was updated successfully, but these errors were encountered: