X has implicitly has type 'any' because it does not have a type annotation error

Original message was deleted