Skip to content

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

Closed

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

Activity

  1. added a commit that references this issue on May 4, 2023
    2102189
  2. added 2 commits that reference this issue on May 8, 2023
    54e5000
    3aa1c4e
  3. angular-automatic-lock-bot commented on Jun 8, 2023

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  4. locked and limited conversation to collaborators on Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    angular/build:applicationarea: @angular-devkit/build-angularfreq1: lowtype: bug/fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions