esbuild generates broken index.html occassionally when using app-shell #26593
Labels
angular/build:application
area: @angular-devkit/build-angular
devkit/build-angular:app-shell
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Command
build
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When using the esbuild application builder with the app-shell, the generated
index.html
file occasionally breaks. The issue manifests as the generation of multipleapp-root
,html
,body
tags, and sometimes these tags are not properly closed.My angular.json:
Please note that the issue occurs only occasionally on random builds. Possibly a duplicate
index.html
file is generated for the app-shell and both these files are somehow getting incorrectly merged during the writing process?Minimal Reproduction
ng new my-app
ng generate app-shell
ng build
Note that this issue occurs only on random builds
Exception or Error
No response
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: