Solved: Type 'typeof HomePage' has no properties in common with type 'Component'


#1

Has anyone seen this before? Had this error:

[TS] Type ‘typeof HomePage’ has no properties in common with type ‘Component’.


#2

What’s the code that it’s complaining about look like?


#3

Re-lunched my browser and VScode and suddenly no more errors.


#4

I created a variable as "homePage: Component;"
It was solve by changing it to “homePage: any;”


#5

Thank you so much for this answer.
I uninstall all typescript, ionic and cordova and re-install their latest version. It works like a charm :smiley:


#6

Thanks mate,

It solved the issue for me.


#7

working perfect, thank you


#8

Glad to know it helped. :+1:


#9

Thanks…It worked for me too…