diff --git a/packages/nx/src/tasks-runner/utils.ts b/packages/nx/src/tasks-runner/utils.ts index 5bfafa1329159..8fcc77eb83f15 100644 --- a/packages/nx/src/tasks-runner/utils.ts +++ b/packages/nx/src/tasks-runner/utils.ts @@ -201,7 +201,7 @@ export function getOutputsForTargetAndConfiguration( const targetConfiguration = node.data.targets[target]; const options = { - ...targetConfiguration.options, + ...targetConfiguration?.options, ...targetConfiguration?.configurations?.[configuration], ...overrides, };