Ionic generate page doesn't work. [ERROR] Could not generate page

I cannot create a page using the cli command “ionic generate page testPage”. I’m getting the following error.

image

I tried the following fix but it didn’t work.

Updates to Ionic Angular Toolkit - Ionic Blog

I had previously posted a solution that at the end WASNT the true solution to the problem being asked, so I deleted it.

NOW I have the true solution! Add the following lines to your angular.json at the bottom & BOOM ionic generate page works again!

“cli”: {
“schematicCollections”: [
@ionic/angular-toolkit”
]
}

Image example:

image

Hope THIS solution helps! :crown::muscle:t5:

4 Likes