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'),