Skip to content

Splaktar/ngfor-asyncpipe-ivy

Repository files navigation

Ivy Template Check Issue

Reproduction of an issue building a template that uses the combination of the following

  1. *ngFor
  2. | async
  3. HttpClient

With the following build configuration

  1. "enableIvy": true
  2. "strictNullChecks": true
  3. "fullTemplateTypeCheck": true,

Disabling any of these build options will allow for a successful build. With all of the options enabled, it generates this error:

ERROR in src/app/version-picker.html(6,25): Type 'VersionInfo[] | null' is not assignable to type 'VersionInfo[] | Iterable<VersionInfo> | undefined'.
src/app/version-picker.html(8,8): Object is of type 'unknown'.