Skip to content

fix(@angular/build): track missing component resource paths for watch mode recovery - #34428

Closed
alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:fix/library-missing-resource-watch
Closed

alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:fix/library-missing-resource-watch

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

Summary

  • Record missing component resource files (templateUrl / styleUrl) in resourceNameToFileName when !this.fileExists(resolvedPath).
  • Include missing component resource paths in componentResourcesDependencies in AotCompilation.initialize() and invalidate the containing component file when the missing resource file is subsequently created.
  • Register componentResourcesDependencies on BuilderState in compileLibrary so creating a missing template or stylesheet in watch mode marks the component as affected and clears the NG2008 diagnostic.

@angular-automatic-lock-bot

Copy link
Copy Markdown

This pull request 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 Nov 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant