-
Notifications
You must be signed in to change notification settings - Fork 27k
Description
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
We log errors our users are getting. Since a few weeks (+- around the time of upgrading to ng18) a new error has popped up.
It happens approximately 10 times per day on a userbase of +-8000 users per day.
We cannot reproduce it ourselves, but it seems to be a combination of lazy loading/defer loading + loss of internet connection.
Error: "ASSERTION ERROR: Must never be called in production mode"
stack trace: vu@https://www.acro-companion.com/chunk-HPX2AJVJ.js:4:392dv@https://www.acro-companion.com/chunk-HPX2AJVJ.js:7:40140@https://www.acro-companion.com/chunk-HPX2AJVJ.js:7:90570onInvoke@https://www.acro-companion.com/chunk-HPX2AJVJ.js:7:64426run@https://www.acro-companion.com/polyfills-XYXPKSL4.js:1:1733@https://www.acro-companion.com/polyfills-XYXPKSL4.js:2:556onInvokeTask@https://www.acro-companion.com/chunk-HPX2AJVJ.js:7:64246runTask@https://www.acro-companion.com/polyfills-XYXPKSL4.js:1:2348x@https://www.acro-companion.com/polyfills-XYXPKSL4.js:1:9079promiseReactionJob@[native code]
interesting is that +-95% is on iPhone, so possibly something to do with loading of javascript during minimized?
If I search through node modules this error seems to originate from angular core:

our configuration for production is nothing special:


Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version)
Angular CLI: 18.0.4
Node: 20.13.1
Package Manager: npm 10.6.0
OS: win32 x64
Angular: 18.0.3
... animations, cdk, common, compiler, compiler-cli, core, forms
... google-maps, language-service, material
... material-date-fns-adapter, platform-browser
... platform-browser-dynamic, router, service-worker
... youtube-player
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1800.4
@angular-devkit/build-angular 18.0.4
@angular-devkit/core 18.0.4
@angular-devkit/schematics 18.0.4
@angular/cli 18.0.4
@angular/fire 18.0.1
@schematics/angular 18.0.4
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.7
Anything else?
No response