Unable to generate component

Hi, I type in the command ionic generate component test and it shows me component error. Anyone knows how to solve it?

This is not error, sometimes happening this also in my project. I am using vs code. Mostly i am doing this: select all then cut and paste and error gone.