- The fix was to delete
.angular
andnode_modules
, then reinstall dependencies withnpm install
. Simple and effective!
- Make every component import from
'@ionic/angular'
to
'@ionic/angular/standalone'
- Remove
IonicModule
and from my entire project even in
app.config.ts
There should be not import { IonicModule } from '@ionic/angular';
in entire project.
Further more:- You could simply search @ionic/angular
for these keyword and make sure it is replace by @ionic/angular/standalone
.
Following all these the error gone.
1 Like