Skip to content

ChangeDetectionSchedulerImpl breaks Zoneless apps #55116

Closed

Description

@e-oz

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

Yes

Description

Line 55 in zoneless_scheduling_impl.ts causes Zone is not defined exception.

if (Zone?.root?.run) {
...

Reproduction:
https://stackblitz.com/edit/stackblitz-starters-memovq?devToolsHeight=33&file=src%2Fmain.ts

Was working fine in 18.0.0-next.1:
https://stackblitz.com/edit/stackblitz-starters-p1azc6?file=src%2Fmain.ts

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-memovq?devToolsHeight=33&file=src%2Fmain.ts

Please provide the exception or error you saw

`Zone is not defined`

Please provide the environment you discovered this bug in (run ng version)

Package Manager: yarn 1.22.22
OS: darwin arm64

Angular: 18.0.0-next.2
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1800.0-next.1
@angular-devkit/build-angular   18.0.0-next.1
@angular-devkit/core            18.0.0-next.1
@angular-devkit/schematics      18.0.0-next.1
@angular/cli                    18.0.0-next.1
@angular/pwa                    18.0.0-next.1
@schematics/angular             18.0.0-next.1
rxjs                            7.8.1
typescript                      5.5.0-dev.20240329
webpack                         5.91.0
zone.js                         0.14.4

Anything else?

No response

Activity

  1. added
    area: zones
    on Mar 29, 2024
  2. added this to the needsTriage milestone on Mar 29, 2024
  3. added
    area: core
    on Mar 29, 2024
  4. added a commit that references this issue on Mar 29, 2024
    5921a13
  5. added a commit that references this issue on Mar 29, 2024
    a99cb7c
  6. angular-automatic-lock-bot commented on Apr 29, 2024

    @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.

  7. locked and limited conversation to collaborators on Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: corearea: zonesbugstate: has PR

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions