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