Skip to content

esbuild ng serve results in "ApplicationInitStatus is undefined" run-time error #25127

@Klaster1

Description

@Klaster1

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

After changing the "build.builder" to "@angular-devkit/build-angular:browser-esbuild", as described here, the app builds but does not bootstrap, throwing the following error:

ApplicationInitStatus is undefined

The default webpack builder works fine.

Minimal Reproduction

  1. Clone the https://github.com/Klaster1/timer-5
  2. Switch to the "esbuild" branch.
  3. Run "npm i", "ng serve", navigate to http://127.0.0.1:4200.

Exception or Error

No response

Your Environment

Angular CLI: 16.0.0                                                                                                                                                                          
Node: 18.15.0                                                                                                                                                                                
Package Manager: npm 9.5.0                                                                                                                                                                   
OS: win32 x64                                                                                                                                                                                
                                                                                                                                                                                             
Angular: 16.0.0                                                                                                                                                                              
... animations, cdk, cli, common, compiler, compiler-cli, core                                                                                                                               
... forms, language-service, material, platform-browser                                                                                                                                      
... platform-browser-dynamic, router, service-worker                                                                                                                                         
                                                                                                                                                                                             
Package                         Version                                                                                                                                                      
---------------------------------------------------------                                                                                                                                    
@angular-devkit/architect       0.1600.0                                                                                                                                                     
@angular-devkit/build-angular   16.0.0                                                                                                                                                       
@angular-devkit/core            16.0.0                                                                                                                                                       
@angular-devkit/schematics      16.0.0                                                                                                                                                       
@schematics/angular             16.0.0                                                                                                                                                       
rxjs                            7.8.1                                                                                                                                                        
typescript                      5.0.4

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions