Skip to content

ChangeDetectionSchedulerImpl breaks Zoneless apps #55116

@e-oz

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions