From fc95cb6cc739e837617212d788aaa9754031cb82 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 1 May 2022 16:40:26 +0100 Subject: [PATCH] Fix chart.js import error --- client_src/js/DeviceReadingDisplay.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_src/js/DeviceReadingDisplay.mjs b/client_src/js/DeviceReadingDisplay.mjs index 77f42c9..e0228ba 100644 --- a/client_src/js/DeviceReadingDisplay.mjs +++ b/client_src/js/DeviceReadingDisplay.mjs @@ -7,7 +7,7 @@ import CreateElement from '../../node_modules/dom-create-element-query-selector/ import moment from 'moment'; // import Chart from 'chart.js'; // Chart.js pollutes the global scope, but the main entry point is going to change soon in v2.8 - which should fix our issue here -import Chart from '../../node_modules/chart.js/dist/Chart.bundle.min.js'; +import Chart from '../../node_modules/chart.js/dist/chart.esm.js'; import Config from './Config.mjs';