Ionic storage angular

I’m getting this error when i serve the app.

Cannot read property ‘platformId’ of undefined
at provideStorage (ionic-storage-angular.js:49)

Can you share an example of how you have setup storage?

I have decided to downgrade to @ionic/storage version 2.3.0 which it does not have the errors.

I had used the same code as shown on the github page for the package @ionic/storage-angular before downgrading.

I have fixed the same issue when using ionic/storage v3 for angular. I just had to update my angular to latest v9 (previously on v8) and update all ionic native to v5.XX (previously on v5.0).