From 325f961a99681a424df1cf57f2bd7e64c59da69c Mon Sep 17 00:00:00 2001 From: Christopher Hase Date: Thu, 10 Apr 2025 11:41:51 +0200 Subject: [PATCH] add http-server part 6.1.4 --- backend/server.ts | 2 +- tsconfig.backend.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/server.ts b/backend/server.ts index 9dbb2c2..3b2fdb6 100644 --- a/backend/server.ts +++ b/backend/server.ts @@ -1,5 +1,5 @@ import express from 'express'; -import { executeCommand } from './broker'; +import { executeCommand } from './broker.js'; const app = express(); const port = 8080; diff --git a/tsconfig.backend.json b/tsconfig.backend.json index a423a25..890b5aa 100644 --- a/tsconfig.backend.json +++ b/tsconfig.backend.json @@ -2,7 +2,8 @@ "extends": "./tsconfig.json", "compilerOptions": { "outDir": "./dist/backend", - "module": "ESNext" + "module": "ESNext", + "moduleResolution": "node" }, "include": ["backend/**/*.ts"] } \ No newline at end of file