From 9e6dc24672269bdba53399e3f6fb98c7a28f8d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Wed, 7 May 2025 15:07:18 +0200 Subject: [PATCH] fix: improve check for crawlee version mismatch Related: https://apify.slack.com/archives/CD0SF6KD4/p1744193806253989 --- packages/apify/src/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/apify/src/utils.ts b/packages/apify/src/utils.ts index dd09ab98f9..82ac30d1a2 100644 --- a/packages/apify/src/utils.ts +++ b/packages/apify/src/utils.ts @@ -55,7 +55,8 @@ export function checkCrawleeVersion() { ]; for (const path of paths) { - if (!pathExistsSync(path)) { + // ignore unresolved paths or paths that are not in the project directory + if (!pathExistsSync(path) || !path.startsWith(process.cwd())) { continue; }