diff --git a/packages/storybook/src/generators/configuration/lib/util-functions.ts b/packages/storybook/src/generators/configuration/lib/util-functions.ts index f16d33bf379b2..3150eb448e40e 100644 --- a/packages/storybook/src/generators/configuration/lib/util-functions.ts +++ b/packages/storybook/src/generators/configuration/lib/util-functions.ts @@ -371,7 +371,7 @@ export function updateLintConfig(tree: Tree, schema: StorybookConfigureSchema) { const { name: projectName } = schema; const { targets, root } = readProjectConfiguration(tree, projectName); - const tslintTargets = Object.values(targets).filter( + const tslintTargets = Object.values(targets ?? {}).filter( (target) => target.executor === '@angular-devkit/build-angular:tslint' );