Skip to content

Vite stuck in Building... #26213

@yjaaidi

Description

@yjaaidi

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

When running ng serve using the new builder, Vite seems to get stuck at Building....

Minimal Reproduction

  • run npm create @angular@next repro
  • downgrade typescript to 5.1.6
  • create an empty src/polyfills.ts
  • replace ['zone.js'] with ['src/polyfills.ts']
  • run ng serve

Exception or Error

No response

Your Environment

Angular CLI: 17.0.0-rc.3
Node: 20.8.0
Package Manager: pnpm 8.9.2
OS: darwin x64

Angular: 17.0.0-rc.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0-rc.3
@angular-devkit/build-angular   17.0.0-rc.3
@angular-devkit/core            17.0.0-rc.3
@angular-devkit/schematics      17.0.0-rc.3
@angular/cli                    17.0.0-rc.3
@schematics/angular             17.0.0-rc.3
rxjs                            7.8.1
typescript                      5.1.6
zone.js                         0.14.1

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