diff --git a/lib/cli/generators/ANGULAR/index.js b/lib/cli/generators/ANGULAR/index.js index 073e0cdb9d7..24b200c33c3 100644 --- a/lib/cli/generators/ANGULAR/index.js +++ b/lib/cli/generators/ANGULAR/index.js @@ -46,8 +46,8 @@ async function addDependencies(npmOptions) { function editAngularAppTsConfig() { const tsConfigJson = getAngularAppTsConfigJson(); if (tsConfigJson) { - const { exclude } = tsConfigJson.compilerOptions; - tsConfigJson.compilerOptions.exclude = [...exclude, '**/*.stories.ts']; + const { exclude } = tsConfigJson; + tsConfigJson.exclude = [...exclude, '**/*.stories.ts']; writeAngularAppTsConfig(tsConfigJson); } }