### 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 ```true `Zone is not defined` ``` ### Please provide the environment you discovered this bug in (run `ng version`) ```true 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
fix(core): zoneless scheduler should check if Zone is defined before …
fix(core): zoneless scheduler should check if Zone is defined before …
angular-automatic-lock-bot commentedon Apr 29, 2024
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.