diff --git a/lib/cli/generators/ANGULAR/index.js b/lib/cli/generators/ANGULAR/index.js index 6e91ee4abc2..bd33a360b3f 100644 --- a/lib/cli/generators/ANGULAR/index.js +++ b/lib/cli/generators/ANGULAR/index.js @@ -50,7 +50,7 @@ function editAngularAppTsConfig() { return; } - const { exclude } = tsConfigJson; + const { exclude = [] } = tsConfigJson; if (exclude.includes(glob)) { return; }