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; }