Skip to content

Commit 721e67d

Browse files
authored
fix: improve check for crawlee version mismatch (#386)
Related: https://apify.slack.com/archives/CD0SF6KD4/p1744193806253989 Closes #375
1 parent 132b5dc commit 721e67d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/apify/src/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export function checkCrawleeVersion() {
5555
];
5656

5757
for (const path of paths) {
58-
if (!pathExistsSync(path)) {
58+
// ignore unresolved paths or paths that are not in the project directory
59+
if (!pathExistsSync(path) || !path.startsWith(process.cwd())) {
5960
continue;
6061
}
6162

0 commit comments

Comments
 (0)