### Command serve ### Is this a regression? - [ ] Yes, this behavior used to work in the previous version ### The previous version in which this bug was not present was _No response_ ### Description I'm create new app and after first `serve` throw this build error  ### Minimal Reproduction ng new ng serve ### Exception or Error ```text ./node_modules/@angular/common/fesm2022/common.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/tools/babel/webpack-loader.js): TypeError: D:\apps\Other\form-angular\node_modules\@angular\common\fesm2022\common.mjs: Cannot read properties of undefined (reading 'file') ./node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/tools/babel/webpack-loader.js): TypeError: D:\apps\Other\form-angular\node_modules\@angular\platform-browser\fesm2022\platform-browser.mjs: Cannot read properties of undefined (reading 'file') ``` ### Your Environment ```text @angular-devkit/architect 0.1601.1 @angular-devkit/build-angular 16.1.1 @angular-devkit/core 16.1.1 @angular-devkit/schematics 16.1.1 @angular/cli 16.1.1 @schematics/angular 16.1.1 rxjs 7.8.1 typescript 5.1.3 ``` ### Anything else relevant? _No response_