Typescript Error Property 'forChild' error

Ionic 3 with angular 4 when creating new component typescript error appear .
Typescript Error Property ‘forChild’ does not exist on type ‘typeof IonicModule’.

Ionic Framework: 3.0.1
Ionic App Scripts: 1.3.0
Angular Core: 4.0.0
Angular Compiler CLI: 4.0.0
Node: 7.8.0
OS Platform: Windows 10
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Change IonicModule to IonicPageModule as stated over here: Ionic 3 generated page throws error

1 Like