From cb08518fc85f19e69a760de993e64760fa9cfaed Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 1 May 2022 16:45:11 +0100 Subject: [PATCH] Tweak chart.js import again --- 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 e0228ba..5f1c4df 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.esm.js'; +import * as Chart from '../../node_modules/chart.js/dist/chart.esm.js'; import Config from './Config.mjs';