From a843435ac50a36a7fcae8620c2409f29b4f2f48e Mon Sep 17 00:00:00 2001 From: Pithon Kabiro <pithon.kabiro@hft-stuttgart.de> Date: Thu, 24 Jun 2021 10:21:25 +0200 Subject: [PATCH] Use ES6 module approach for imports and exports There seems to be conflict between the backend server (Node.js & Express) and our front-end (browser-based) if we want to use module imports and exports. It is not currently possible to use Node.js / CommonJS modules. The current solution uses ES6 modules. May need to look for a better approach. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e525e37..ba2082b 100644 --- a/index.html +++ b/index.html @@ -66,8 +66,8 @@ <!-- Custom JS --> - <script defer src="js/appCesium.js"></script> - <script defer src="js/appChart.js"></script> + <script defer type="module" src="js/appCesium.js"></script> + <script defer type="module" src="js/appChart.js"></script> </head> <body class="sb-nav-fixed"> <nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark"> -- GitLab