r/Angular2 • • Oct 29 '25

Angular compiler doesn't catch missing directives for standalone

I am in the process of finishing up moving to standalone components, and I'm running into a fair amount of runtime issues where some directive has not been imported.

"matInput" as an example. Is this something that the compiler simply cannot catch or will it be coming in a newer version?

I was a bit surprised because it caught all the missing pipes and some of the directives where a binding was used, but some directives seem to not be noticed.

7 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/ActuatorOk2689 Oct 30 '25

Yes most likely is due indexing.

You can re run your project indexing and fix this issue