From 6e84cbfac07dc28d5def19b245f184ae0c72f161 Mon Sep 17 00:00:00 2001 From: EugeneKruglei <35628216+EugeneKruglei@users.noreply.github.com> Date: Wed, 3 Jul 2024 21:10:08 +0300 Subject: [PATCH] fix(core): cannot read properties of undefined (reading 'options') (#26721) --- packages/nx/src/tasks-runner/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, };