From 570cb49764fad3325ad9224d2664174a8be6daf1 Mon Sep 17 00:00:00 2001 From: vjrj Date: Thu, 30 Jul 2026 09:04:11 +0200 Subject: [PATCH] fix(subsUnion): drop duplicated programs/server prefix in npm path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit process.cwd() for this process is already /app/programs/server (same basis WORKER_PATH already relied on), so prefixing 'programs/server/' again produced .../programs/server/programs/server/npm/node_modules — still Cannot find module '@turf/circle', just with a longer wrong path. --- imports/startup/server/calcUnionAsync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imports/startup/server/calcUnionAsync.js b/imports/startup/server/calcUnionAsync.js index b5ad54a..ecb7a9c 100644 --- a/imports/startup/server/calcUnionAsync.js +++ b/imports/startup/server/calcUnionAsync.js @@ -12,7 +12,7 @@ const WORKER_PATH = path.resolve(process.cwd(), 'assets/app/workers/unionWorker. // and fails with "Cannot find module '@turf/circle'". Resolving the absolute // path here, where Meteor's own module system already knows how to find it, // and handing it to the worker sidesteps that entirely. -const NPM_MODULES = path.resolve(process.cwd(), 'programs/server/npm/node_modules'); +const NPM_MODULES = path.resolve(process.cwd(), 'npm/node_modules'); const turfPaths = { circle: path.join(NPM_MODULES, '@turf/circle'), union: path.join(NPM_MODULES, '@turf/union'),