I am facing the same issue with v19. I was using v19.2.1 I never experienced this issue. But when I updated my global cli to v19.2.9 I created a new application using ng new
I started experiencing this error message on every component that I can only use imports on a component unless it's standalone. I had to explicitly declare standalone:true in order to silent this error. Which does not make sense to me. It seems like an accidental bug from the Angular team