Skip to content

Component update failed: object unsubscribed #31492

@cegatodes

Description

@cegatodes

Command

update

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

Angular < 18

Description

When I update a css, html or typescript and I'm running the server at the same time as angular with ng serve -o

Minimal Reproduction

When I update a css, html or typescript and I'm running the server at the same time as angular with ng serve -o

Exception or Error

Error
    at _super (http://localhost:4200/@fs/C:/10%20Inventarios/InventarioSQL/APPInventario(10-10-2025)%20Sig_DT_R/.angular/cache/19.2.15/APPInventario/vite/deps/chunk-P6U2JBMQ.js?v=defcc2d8:245:22) 
    at new ObjectUnsubscribedErrorImpl (http://localhost:4200/@fs/C:/10%20Inventarios/InventarioSQL/APPInventario(10-10-2025)%20Sig_DT_R/.angular/cache/19.2.15/APPInventario/vite/deps/chunk-P6U2JBMQ.js?v=defcc2d8:1023:5)
    at Subject2._throwIfClosed (http://localhost:4200/@fs/C:/10%20Inventarios/InventarioSQL/APPInventario(10-10-2025)%20Sig_DT_R/.angular/cache/19.2.15/APPInventario/vite/deps/chunk-P6U2JBMQ.js?v=defcc2d8:1049:13)
    at Subject2._trySubscribe (http://localhost:4200/@fs/C:/10%20Inventarios/InventarioSQL/APPInventario(10-10-2025)%20Sig_DT_R/.angular/cache/19.2.15/APPInventario/vite/deps/chunk-P6U2JBMQ.js?v=defcc2d8:1120:10)
    at http://localhost:4200/@fs/C:/10%20Inventarios/InventarioSQL/APPInventario(10-10-2025)%20Sig_DT_R/.angular/cache/19.2.15/APPInventario/vite/deps/chunk-P6U2JBMQ.js?v=defcc2d8:718:115
    at errorContext (http://localhost:4200/@fs/C:/10%20Inventarios/InventarioSQL/APPInventario(10-10-2025)%20Sig_DT_R/.angular/cache/19.2.15/APPInventario/vite/deps/chunk-P6U2JBMQ.js?v=defcc2d8:493:5)
    at Observable2.subscribe (http://localhost:4200/@fs/C:/10%20Inventarios/InventarioSQL/APPInventario(10-10-2025)%20Sig_DT_R/.angular/cache/19.2.15/APPInventario/vite/deps/chunk-P6U2JBMQ.js?v=defcc2d8:716:5)
    at _DataTableDirective.ngOnInit (http://localhost:4200/@fs/C:/10%20Inventarios/InventarioSQL/APPInventario(10-10-2025)%20Sig_DT_R/.angular/cache/19.2.15/APPInventario/vite/deps/angular-datatables.js?v=defcc2d8:31:22)
    at callHookInternal (http://localhost:4200/@fs/C:/10%20Inventarios/InventarioSQL/APPInventario(10-10-2025)%20Sig_DT_R/.angular/cache/19.2.15/APPInventario/vite/deps/chunk-3W5R4R57.js?v=defcc2d8:4176:10)
    at callHook (http://localhost:4200/@fs/C:/10%20Inventarios/InventarioSQL/APPInventario(10-10-2025)%20Sig_DT_R/.angular/cache/19.2.15/APPInventario/vite/deps/chunk-3W5R4R57.js?v=defcc2d8:4191:7)20Sig_DT_R/.angular/cache/19.2.15/APPInventario/vite/deps/chunk-3W5R4R57.js?v=defcc2d8:4191:7)

Your Environment

@angular-devkit/architect       0.1902.15
@angular-devkit/build-angular   19.2.15
@angular-devkit/core            19.2.15
@angular-devkit/schematics      19.2.15
@angular/cli                    19.2.15
@schematics/angular             19.2.15
rxjs                            7.8.2
typescript                      5.7.3
zone.js                         0.15.1

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro stepsWe cannot reproduce the issue with the information given

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions