E0117 Page used as a component
Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.
Why
Every file in pages/ is a route. Shared markup lives in components/, which are never routes.
How to fix it
Move the shared part into components/ and import it from there.
In a terminal
duolith explain E0117