Skip to content

Commit e09a5b5

Browse files
leosvelperezjaysoo
authored andcommitted
fix(core): handle nullable lock when creating project graph (#30000)
## Current Behavior The project graph construction can throw an error when the lock is not created: #29821 (comment). ## Expected Behavior The project graph construction should correctly handle the nullable lock. ## Related Issue(s) Fixes #
1 parent fe65d78 commit e09a5b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nx/src/project-graph/project-graph.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export async function createProjectGraphAndSourceMapsAsync(
363363
} catch (e) {
364364
handleProjectGraphError(opts, e);
365365
} finally {
366-
lock.unlock();
366+
lock?.unlock();
367367
}
368368
} else {
369369
try {

0 commit comments

Comments
 (0)