Skip to content

fix(core): add support for zoneless apps#220

Open
mattlewis92 wants to merge 1 commit intogrbsk:masterfrom
mattlewis92:patch-1
Open

fix(core): add support for zoneless apps#220
mattlewis92 wants to merge 1 commit intogrbsk:masterfrom
mattlewis92:patch-1

Conversation

@mattlewis92
Copy link

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x")

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
The app throws a "Zone is not defined" error when running with zone.js removed (i.e. is running in zoneless mode)

What is the new behavior?
No error is thrown

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@evilaliv3
Copy link

The patch works great for me!

@grbsk do you have have advice on who could do the next review necessary?

@evilaliv3
Copy link

evilaliv3 commented Aug 20, 2025

@grbsk: I'm sorry to ask again, but it would be very beneficial to merge the patch proposed and issue a new release.

Angular in fact has just taken Zoneless mode to from preview mode to stable with the release 20.2.0

Please let me know if you need any support.

@romainhealth
Copy link

Hi, can we help on this issue ? Is there any approved reviewers nearby ?

I'm interessed in this update.

@r05014
Copy link

r05014 commented Oct 21, 2025

I'm also interested in this update, especially for the support of Angular applications in zoneless mode, which is becoming increasingly common with Angular 20.2.0.
The proposed patch works very well on my end as well.
Is there a reviewer available to finalize this PR?

fishdaa pushed a commit to fishdaa/ng2-idle that referenced this pull request Nov 24, 2025
- Add typeof Zone check before accessing Zone.current
- Prevents 'Zone is not defined' error in zoneless Angular apps
- Supports Angular 20.2.0+ zoneless mode (stable)

Refs: grbsk#220
fishdaa added a commit to fishdaa/ng2-idle that referenced this pull request Nov 24, 2025
- Add typeof Zone check before accessing Zone.current
- Prevents 'Zone is not defined' error in zoneless Angular apps
- Supports Angular 20.2.0+ zoneless mode (stable)

Refs: grbsk#220
fishdaa added a commit to fishdaa/ng2-idle that referenced this pull request Nov 24, 2025
- Add typeof Zone check before accessing Zone.current
- Prevents 'Zone is not defined' error in zoneless Angular apps
- Supports Angular 20.2.0+ zoneless mode (stable)

Refs: grbsk#220
fishdaa added a commit to fishdaa/ng2-idle that referenced this pull request Nov 24, 2025
- Add typeof Zone check before accessing Zone.current
- Prevents 'Zone is not defined' error in zoneless Angular apps
- Supports Angular 20.2.0+ zoneless mode (stable)

Refs: grbsk#220
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments