Ionic generate page doesn't work

I updated my project from ionic 4 to 6 and after fixing everything. not able to create a new page using ionic generate page

but it shows an error

An unhandled exception occurred: Package
"@ionic/cordova-builders" was found but does not support schematics.

unable to figure out the issue.

Are you using capacitor or crodova ?

Read and try this

I am using Cordova and I already have "@ionic/cordova-builders": "^6.1.0" package.
but nothing works still.

for solution follow this.