after doing an ionic start test blank --v3 and an ionic generate page AppDetails, I get this error:
Typescript Error
Property ‘forChild’ does not exist on type ‘typeof IonicModule’.
src/pages/app-details/app-details.module.ts
imports: [
IonicModule.forChild(AppDetailsPage),
],
Ionic Framework: 3.0.0
Ionic App Scripts: 1.3.0
Angular Core: 4.0.0
Angular Compiler CLI: 4.0.0
Node: 7.2.1
OS Platform: macOS Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
GitHub’s search functIon must be broken, because there are several. I’m still not sure what the intended behavior is here: whether they want to roll the IonicPageModule functionality into IonicModule or not.
Disclaimer: I am brand new to Ionic - like 12 hours experience playing with sample projects, and that’s it.
So let me get this straight: the command to generate a page (ionic g page SecondPage) generates code that is broken? That seems… bad. But okay, whatever, I can rename IonicModule -> IonicPageModule.
But then what do I import in my app.module.ts file? import { SecondPage } from ‘…/pages/second/second’; does not work - (has no exported member ‘SecondPage’). Okay… if I delete the second.module.ts file entirely, and make second.ts look like home.ts, then I can import SecondPage just fine. Is this bad? Should I learn how to use the Module? I have literally no idea what the benefits would be.
I don’t know, I’m just trying to follow along with online video tutorials, and I’m annoyed that built in code generation commands make buggy files.