From 8733a643bfa3b8e31a45d6ec5dd8244ca061ed05 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Sun, 15 Feb 2026 00:53:43 -0600 Subject: [PATCH] fix(api): remove "type": "module" conflicting with CommonJS build output The NestJS tsconfig compiles to CommonJS (module: "CommonJS") but package.json had "type": "module", causing Node.js v24 to treat the CJS output as ESM and fail with "exports is not defined in ES module scope" at startup. Co-Authored-By: Claude Opus 4.6 --- apps/api/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/api/package.json b/apps/api/package.json index b90f4b2..ce11f92 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -2,7 +2,6 @@ "name": "@mosaic/api", "version": "0.0.1", "private": true, - "type": "module", "scripts": { "build": "nest build", "dev": "nest start --watch",