From afdac402b82c200b6af4cdb1ff2c411ce23cd006 Mon Sep 17 00:00:00 2001 From: skadefro Date: Thu, 2 Jan 2025 15:23:01 +0100 Subject: [PATCH] quck fix, ts errors --- src/Logger.ts | 2 ++ src/index.ts | 1 + src/test/KubeUtil.test.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/src/Logger.ts b/src/Logger.ts index 37d69464..29357187 100644 --- a/src/Logger.ts +++ b/src/Logger.ts @@ -416,6 +416,7 @@ export class Logger { if(Logger.otel == null) { try { + // @ts-ignore if (!skipotel && Logger._otel_require == null) Logger._otel_require = await import("./ee/otel.js"); } catch (error) { console.error(error.message); @@ -477,6 +478,7 @@ export class Logger { } if (this.agentdriver == null && (!NoderedUtil.IsNullEmpty(process.env["KUBERNETES_SERVICE_HOST"]) || !NoderedUtil.IsNullEmpty(process.env["USE_KUBERNETES"]))) { try { + // @ts-ignore let _driver: any = await import("./ee/kubedriver.js"); this.agentdriver = new _driver.kubedriver(); } catch (error) { diff --git a/src/index.ts b/src/index.ts index 848c1cfa..d8424db7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -256,6 +256,7 @@ var server: http.Server = null; Logger.instanse.debug("Configure Webserver", span, { cls: "index", func: "init" }); server = await WebServer.configure(Config.baseurl(), span); try { + // @ts-ignore let GrafanaProxy: any = await import("./ee/grafana-proxy.js"); Logger.instanse.debug("Configure grafana", span, { cls: "index", func: "init" }); const grafana = await GrafanaProxy.GrafanaProxy.configure(WebServer.app, span); diff --git a/src/test/KubeUtil.test.ts b/src/test/KubeUtil.test.ts index b8fdc2ff..e701e53d 100644 --- a/src/test/KubeUtil.test.ts +++ b/src/test/KubeUtil.test.ts @@ -3,6 +3,7 @@ import { Config } from "../Config.js"; import { DatabaseConnection } from "../DatabaseConnection.js"; import assert from "assert"; import { Logger } from "../Logger.js"; +// @ts-ignore import { KubeUtil } from "../ee/KubeUtil.js"; @suite class kubeutil_test {