Skip to content

Zoneless option still include zone.js in the dependencies #30419

@CGarces

Description

@CGarces

Command

new

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

Using

ng new --package-manager pnpm

✔ What name would you like to use for the new workspace and initial project? test
✔ Do you want to create a 'zoneless' application without zone.js (Developer Preview)? Yes
✔ Which stylesheet format would you like to use? CSS [ https://developer.mozilla.org/docs/Web/CSS

My expectation was a package.json without "zone.js"

Minimal Reproduction

ng new --package-manager pnpm

✔ What name would you like to use for the new workspace and initial project? test
✔ Do you want to create a 'zoneless' application without zone.js (Developer Preview)? Yes
✔ Which stylesheet format would you like to use? CSS [ https://developer.mozilla.org/docs/Web/CSS

Exception or Error


Your Environment

PS C:\Users\carlo> ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 20.0.0
Node: 22.16.0
Package Manager: npm 11.4.1
OS: win32 x64

Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.2000.0 (cli-only)
@angular-devkit/core         20.0.0 (cli-only)
@angular-devkit/schematics   20.0.0 (cli-only)
@schematics/angular          20.0.0 (cli-only)

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions