Skip to content

Error to be reported #34519

Closed as not planned
Closed as not planned

Description

@Gouvernathor

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

This appeared in my console and asked me to report it, so I'm reporting it.

Minimal Reproduction

It randomly happens when shifting code around a more specific issue I will open (and link to) in angular base. It happens in the server console (not the browser console) when I ng serve. It also crashed the command.

Exception or Error

Component update failed: useMajorityRatio_r13 is not a function
CalculatorPage_Template@http://localhost:8080/@ng/component?c=src%2Fapp%2F%2Bcalculator%2Fcalculator.ts%40CalculatorPage&t=1792868785355:220:43
executeTemplate@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:8297:13
refreshView@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:8841:43
recreate@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:18521:14
executeWithInvalidateFallback@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:18528:3
recreateLView/<@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:18524:51
run@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:3674:13
recreateLView@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:18524:12
recreateMatchingLViews@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:18481:16
recreateMatchingLViews@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:18489:54
recreateMatchingLViews@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:18488:68
recreateMatchingLViews@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:18489:54
ɵɵreplaceMetadata@http://localhost:8080/@fs/E:/dev/ParliamentDiagram-Angular/.angular/cache/22.1.3/ParliamentDiagram/vite/deps/core-Cz0Y9r6B.js?v=db1e1cd4:18459:100
CalculatorPage_HmrLoad/<@http://localhost:8080/main.js:3242:37
promise callback*CalculatorPage_HmrLoad@http://localhost:8080/main.js:3242:7
@http://localhost:8080/main.js:3245:143
notifyListeners/<@http://localhost:8080/@vite/client:158:55
notifyListeners@http://localhost:8080/@vite/client:158:41
handleMessage@http://localhost:8080/@vite/client:990:20
createHMRHandler/</<@http://localhost:8080/@vite/client:452:49
dequeue@http://localhost:8080/@vite/client:474:8
enqueue/<@http://localhost:8080/@vite/client:466:9
enqueue@http://localhost:8080/@vite/client:460:10
createHMRHandler/<@http://localhost:8080/@vite/client:452:28
onMessage@http://localhost:8080/@vite/client:294:15
createWebSocketModuleRunnerTransport/connect/<@http://localhost:8080/@vite/client:408:14
EventListener.handleEvent*connect@http://localhost:8080/@vite/client:407:11
connect@http://localhost:8080/@vite/client:871:23
connect@http://localhost:8080/@vite/client:278:21
connect@http://localhost:8080/@vite/client:362:45
@http://localhost:8080/@vite/client:950:11

Your Environment

^
     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI       : 22.1.3
Angular           : 22.1.1
Node.js           : 26.4.0
Package Manager   : npm 11.12.0
Operating System  : win32 x64

┌───────────────────────────┬───────────────────┬───────────────────┐
│ Package                   │ Installed Version │ Requested Version │
├───────────────────────────┼───────────────────┼───────────────────┤
│ @angular/build            │ 22.1.3            │ ^22.1.3           │
│ @angular/cdk              │ 22.1.1            │ ^22.1.1           │
│ @angular/cli              │ 22.1.3            │ ^22.1.3           │
│ @angular/common           │ 22.1.1            │ ^22.1.1           │
│ @angular/compiler         │ 22.1.1            │ ^22.1.1           │
│ @angular/compiler-cli     │ 22.1.1            │ ^22.1.1           │
│ @angular/core             │ 22.1.1            │ ^22.1.1           │
│ @angular/forms            │ 22.1.1            │ ^22.1.1           │
│ @angular/material         │ 22.1.1            │ ^22.1.1           │
│ @angular/platform-browser │ 22.1.1            │ ^22.1.1           │
│ @angular/router           │ 22.1.1            │ ^22.1.1           │
│ rxjs                      │ 7.8.2             │ ~7.8.0            │
│ typescript                │ 6.0.3             │ ~6.0.3            │
│ vitest                    │ 4.1.10            │ ^4.0.8            │
└───────────────────────────┴───────────────────┴───────────────────┘

Anything else relevant?

No response

Activity

  1. added this to the needsTriage milestone on Oct 24, 2026
  2. Gouvernathor commented on Oct 24, 2026

    @Gouvernathor
    Author

    angular/angular#71601 is the base issue. So, when tweaking the code I gave in that issue (for instance moving the field to an @let before calling it), randomly, it sometimes gives me that in the system console.

  3. JeanMeche commented on Oct 24, 2026

    @JeanMeche
    Member

    The CLI/SSR behaves as expected here. Let focus on the framework issue you opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions