From ca7f96c34430c7d0b9988224f73b1ce91f4fe714 Mon Sep 17 00:00:00 2001 From: Tine Kondo Date: Wed, 27 Mar 2024 14:06:30 +0000 Subject: [PATCH] fix(common): fix `TypeError: Failed to process project dependencies` Closes #217 --- packages/common/src/lib/workspace/project-graph.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/common/src/lib/workspace/project-graph.ts b/packages/common/src/lib/workspace/project-graph.ts index ba4c493d..37dc61be 100644 --- a/packages/common/src/lib/workspace/project-graph.ts +++ b/packages/common/src/lib/workspace/project-graph.ts @@ -73,6 +73,9 @@ function getDependenciesForProject( const sourceProjectRoot = getProjectRootFromFile(filePath); const sourcePkgInfo = workspace.projects[sourceProjectRoot]; + if(!sourcePkgInfo) + return dependencies; + sourcePkgInfo.dependencies?.forEach((depPkgInfo) => { const targetProjectName = workspace.packages[depPkgInfo.packageId];