Skip to content

Incremental builds fail with ngtsc #30079

Closed
@alan-agius4

Description

@alan-agius4

There has been a regression in 8.0.0-beta.14 when using incremental builds in the CLI with ngtsc.

The second compilation fails and the root cause is that the old ts program is being re-used multiple times.

In the first compilation the current program is passed as the old/original program from
98f86de#diff-c58dc797e5c0e361e5b797b30a767093R415

to
98f86de#diff-b82ae8412104bda23cd21d0633add98fR184

The problem is that when creating a ts program the old ts program will be mutated which is causing the returned ts program from the original invocation of createProgram to be marked as reused, and on the subsequent compilation from the cli we are passing a re-used old program to the createProgram

Talking to @alxhub offline about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtime

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions