✘ [ERROR] TS2339: Property 'error' does not exist on type 'never'. [plugin angular-compiler]
src/main.ts:18:21:
18 │ } @else if (resource.error()) {
╵ ~~~~~
✘ [ERROR] TS2339: Property 'isLoading' does not exist on type 'never'. [plugin angular-compiler]
src/main.ts:20:21:
20 │ } @else if (resource.isLoading()) {
╵ ~~~~~~~~~
Angular: 20.2.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, router
Package Version
------------------------------------
@angular-devkit/architect 0.2002.1
@angular-devkit/core 20.2.1
@angular-devkit/schematics 20.2.1
@angular/build 20.2.1
@angular/cli 20.2.1
@schematics/angular 20.2.1
rxjs 7.8.2
typescript 5.9.2
zone.js 0.15.1
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-h8i5urtp?file=src%2Fmain.ts
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version)Anything else?
control flow
@else ifnot working, but@ifit works