-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AngularFire v18 ng serve error when using zoneless change detection: Zone is not defined #3537
Comments
@anisabboud it's because @angular/fire code expects zoneJS to be present. What you can do is this workaround (although not perfect solution): keep zoneJS in your polyfills, but still use zoneless change detection. This will work, but of course zoneJS will still be part of your initial payload. At least you won't be using it. But to be clear: we are running zoneless without issues - the only thing is that we have to keep zoneJS in polyfills, but that's it. It's still zoneless, but of course the initial payload is a tiny bit larger than it should have been. But this is a small price to pay to move to zoneless, we'll get to remove zonejs eventually I am sure. |
We're working to support Zoneless Angular in an upcoming release |
@jamesdaniels did I say you rock? you do |
The same topic is here: #3494 |
any solution found plz i have the same issue |
Eagerly waiting on this - AngularFire is the only package currently stopping us from going zoneless |
Version info
Angular: 18.0.0
AngularFire: 18.0.0
Firebase: 10.12.1
How to reproduce these conditions
Follow the Angular 18 guide to enable zoneless:
provideExperimentalZonelessChangeDetection()
toproviders
.zone.js
from polyfills inangular.json
.ng serve
https://blog.angular.dev/angular-v18-is-now-available-e79d5ac0affe
Debug output
Error in the terminal
Zone is not defined
Expected behavior
AngularFire/
ng serve
should work with the new zoneless change detection introduced in Angular v18.https://angular.dev/guide/experimental/zoneless
Actual behavior
ng serve
crashes when openinglocalhost:4200
.The text was updated successfully, but these errors were encountered: