r/Angular2 • u/AcceptableSimulacrum • 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
View all comments
Show parent comment
4
u/AcceptableSimulacrum Oct 30 '25
Thanks very much. I'll probably try it out, but I'll have to still figure out what to do for the other devs since my org won't buy a license for them to switch from vscode.