Skip to content

Conversation

@crisbeto
Copy link
Member

In #56358 we removed most of the places that untag the references to typecheck files, because it was causing the compiler to throw error when it produces diagnostics. This appears to have caused a regression in TS 5.4 which now emits the synthetic references.

These changes add tagging right before the program emits.

Fixes #56945.

… 5.4

In angular#56358 we removed most of the places that untag the references to typecheck files, because it was causing the compiler to throw error when it produces diagnostics. This appears to have caused a regression in TS 5.4 which now emits the synthetic references.

These changes add tagging right before the program emits.

Fixes angular#56945.
@crisbeto crisbeto added target: patch This PR is targeted for the next patch release area: compiler Issues related to `ngc`, Angular's template compiler labels Jul 12, 2024
@ngbot ngbot bot added this to the Backlog milestone Jul 12, 2024
@crisbeto crisbeto marked this pull request as ready for review July 12, 2024 09:55
@crisbeto crisbeto added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 12, 2024
@crisbeto crisbeto requested a review from JoostK July 12, 2024 09:55
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 12, 2024
@atscott
Copy link
Contributor

atscott commented Jul 15, 2024

This PR was merged into the repository by commit f0d6d06.

The changes were merged into the following branches: main, 18.1.x

@atscott atscott closed this in f0d6d06 Jul 15, 2024
atscott pushed a commit that referenced this pull request Jul 15, 2024
… 5.4 (#56961)

In #56358 we removed most of the places that untag the references to typecheck files, because it was causing the compiler to throw error when it produces diagnostics. This appears to have caused a regression in TS 5.4 which now emits the synthetic references.

These changes add tagging right before the program emits.

Fixes #56945.

PR Close #56961
@guypes
Copy link

guypes commented Jul 18, 2024

Had the same problem, so I have waited for the fix in 18.1.1, but the fix don't work with ts 5.4.5, so I have upgraded to ts 5.5.3 and all works.

crisbeto added a commit to crisbeto/angular that referenced this pull request Jul 26, 2024
Follow-up to angular#56961 which doesn't appear to have caught all the cases. This change moves the pre-emit untagging to `NgCompiler.prepareEmit` which seems to cover a bit more comared to `NgtscProgram.emit`.

Fixes angular#57135.
dylhunn pushed a commit that referenced this pull request Jul 26, 2024
Follow-up to #56961 which doesn't appear to have caught all the cases. This change moves the pre-emit untagging to `NgCompiler.prepareEmit` which seems to cover a bit more comared to `NgtscProgram.emit`.

Fixes #57135.

PR Close #57138
vladboisa pushed a commit to vladboisa/angular that referenced this pull request Jul 29, 2024
…57138)

Follow-up to angular#56961 which doesn't appear to have caught all the cases. This change moves the pre-emit untagging to `NgCompiler.prepareEmit` which seems to cover a bit more comared to `NgtscProgram.emit`.

Fixes angular#57135.

PR Close angular#57138
crisbeto added a commit to crisbeto/angular that referenced this pull request Jul 31, 2024
…57138)

Follow-up to angular#56961 which doesn't appear to have caught all the cases. This change moves the pre-emit untagging to `NgCompiler.prepareEmit` which seems to cover a bit more comared to `NgtscProgram.emit`.

Fixes angular#57135.

PR Close angular#57138
thePunderWoman pushed a commit that referenced this pull request Jul 31, 2024
…57202)

Follow-up to #56961 which doesn't appear to have caught all the cases. This change moves the pre-emit untagging to `NgCompiler.prepareEmit` which seems to cover a bit more comared to `NgtscProgram.emit`.

Fixes #57135.

PR Close #57138

PR Close #57202
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Since 18.1.0 ngtypecheck refrence is present in compiled ts files

4 participants