Skip to content

Defer blocks export default regression after upgrading to v17.2 #54491

@ArielGueta

Description

@ArielGueta

Which @angular/* package(s) are the source of the bug?

compiler-cli

Is this a regression?

Yes

Description

I get an error on runtime that type is undefined. It happens in a page that uses the defer block. If I revert the upgrade it works fine. I think it's related to the compiler cli package.

export function getComponentDef<T>(type: any): ComponentDef<T>|null {
  return type[NG_COMP_DEF] || null;
}

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: compilerIssues related to `ngc`, Angular's template compilercore: deferIssues related to @defer blocks.state: has PR

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions