Skip to content

Component update failed: ASSERTION ERROR: Should be run in update mode [Expected=> false == true <=Actual] #31506

@A-YL-Z

Description

@A-YL-Z

Command

serve

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

No response

Description

When use live reload coding and change code

console error :

throwError2@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:3719:9
assertEqual@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:3670:16
refreshView@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:11337:16
detectChangesInView@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:11546:16
detectChangesInViewIfAttached@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:11529:22
detectChangesInComponent@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:11522:32
detectChangesInChildComponents@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:11577:29
refreshView@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:11424:37
detectChangesInView@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:11546:16
detectChangesInViewWhileDirty@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:11308:24
detectChangesInternal@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:11297:34
detectChanges@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:11993:26
renderField/<@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-HIYRQSEO.js?v=c6153f01:1732:49
observe/set/<@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-HIYRQSEO.js?v=c6153f01:351:58
set@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-HIYRQSEO.js?v=c6153f01:351:28
set _staticContent@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-HIYRQSEO.js?v=c6153f01:2961:5
FieldWrapper_Query@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-HIYRQSEO.js?v=c6153f01:2980:21
inheritViewQuery/definition.viewQuery@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:15872:20
executeViewQueryFn@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:8841:16
renderView@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:11103:25
recreate@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23824:15
executeWithInvalidateFallback@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23835:5
recreateLView/<@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23830:49
run@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:16647:15
recreateLView@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23830:10
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23763:18
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23776:29
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23773:31
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23770:31
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23773:31
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23776:29
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23773:31
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23770:31
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23770:31
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23776:29
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23773:31
recreateMatchingLViews@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23776:29
ɵɵreplaceMetadata@http://localhost:4200/@fs/mnt/C030B59A54ASD/projet-name/.angular/cache/20.3.2/projet-name/vite/deps/chunk-XJ6E44WO.js?v=c6153f01:23734:31
FormFieldWrapper_HmrLoad/<@http://localhost:4200/main.js:199:36
promise callbackFormFieldWrapper_HmrLoad@http://localhost:4200/main.js:199:7
@http://localhost:4200/main.js:202:143
notifyListeners/<@http://localhost:4200/@vite/client:154:55
notifyListeners@http://localhost:4200/@vite/client:154:41
handleMessage@http://localhost:4200/@vite/client:862:20
createHMRHandler/</<@http://localhost:4200/@vite/client:459:49
dequeue@http://localhost:4200/@vite/client:481:8
enqueue/<@http://localhost:4200/@vite/client:473:9
enqueue@http://localhost:4200/@vite/client:467:10
createHMRHandler/<@http://localhost:4200/@vite/client:459:28
onMessage@http://localhost:4200/@vite/client:306:15
createWebSocketModuleRunnerTransport/connect/<@http://localhost:4200/@vite/client:414:14
EventListener.handleEvent
connect@http://localhost:4200/@vite/client:413:11
connect@http://localhost:4200/@vite/client:751:23
connect@http://localhost:4200/@vite/client:290:23
connect@http://localhost:4200/@vite/client:374:45
@http://localhost:4200/@vite/client:823:11

Please consider reporting the error at https://github.com/angular/angular-cli/issues

Minimal Reproduction

"start": "ng cache clean; ng serve",

run app with "yarn start"

sometime when change code in file, i have this error

Exception or Error


Your Environment

Angular CLI: 20.3.2
Node: 22.19.0
Package Manager: yarn 4.9.4
OS: linux x64
    

Angular: 20.3.1
... common, compiler, compiler-cli, core, forms
... platform-browser, platform-server, router

Package                      Version
------------------------------------
@angular-devkit/architect    0.2003.2
@angular-devkit/core         20.3.2
@angular-devkit/schematics   20.3.2
@angular/animations          20.3.2
@angular/build               20.3.2
@angular/cli                 20.3.2
@angular/ssr                 20.3.2
@schematics/angular          20.3.2
rxjs                         7.8.2
typescript                   5.9.2

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