### Which @angular/* package(s) are the source of the bug? compiler ### Is this a regression? Yes ### Description https://github.com/angular/angularfire/issues/3618 https://github.com/angular/angularfire/issues/3592 https://github.com/angular/angular/issues/59213 I've been able to make a minimal reproduction: https://github.com/LanderBeeuwsaert/notify-scheduler-issue2 run with "npm run t" ### Please provide a link to a minimal reproduction of the bug https://github.com/LanderBeeuwsaert/notify-scheduler-issue2 run with "npm run t" ### Please provide the exception or error you saw ```true ``` ### Please provide the environment you discovered this bug in (run `ng version`) ```true ``` ### Anything else? _No response_
Activity
[-]this.scheduler.notify is not a function[/-][+][BUG] this.scheduler.notify is not a function[/+][-][BUG] this.scheduler.notify is not a function[/-][+]this.scheduler.notify is not a function[/+]JeanMeche commentedon Feb 24, 2025
This is weird injector issue. Injection returns an empty object.
Also noticed that the bug can also be triggered without optimization enabled but by enabling the prod mode with
enableProdMode().Edit: It looks like a circular Injection that doesn't throw properly.
Edit2: The Circular DI error neither throw properly in devmode (it's silenced).
Here is a minimal repro : https://github.com/JeanMeche/notify-scheduler-issue2
Root cause for the error being caught/hidden:
https://github.com/angular/angularfire/blob/35e0a9859299010488852b1826e4083abe56528f/src/zones.ts#L133-L140
JeanMeche commentedon Feb 24, 2025
@LanderBeeuwsaert The main issue in your case seems to be that you're pulling services in the
ErrorHandlerthat trigger the circular dependency.Currently the
ErrorHandleris instantiated eargerly with the App but this is likely to change in the future with #58984.LanderBeeuwsaert commentedon Feb 25, 2025
@JeanMeche ahhhhh ok thank you! Indeed I got it working by moving more services out of the constructor
JeanMeche commentedon Feb 27, 2025
We'll throw an error in prod mode with #60118, the rest is a duplicate of #58970.
refactor(core): throw an Cyclic Dependency Error in prod mode (#60118)
refactor(core): throw an Cyclic Dependency Error in prod mode (#60118)
angular-automatic-lock-bot commentedon Mar 30, 2025
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.