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