Open fudom opened 3 months ago
As just found in this thread: https://github.com/ionic-team/ionic-storage/issues/318
Add the following import:
import { Drivers } from '@ionic/storage';
Then it will work.
Documentation should be updated accordingly.
Please update docs. https://github.com/ionic-team/ionic-storage?tab=readme-ov-file#adding-driver-to-configuration
Where do you get
Drivers
? In@ionic/storage-angular
(v4.0.0) types it's just typeany
. There is not export forDrivers
enum.Workaround: Use string names likeUpdate: Names does not work on browser (without Cordova sqlite).'indexeddb'
and'localstorage'
.It only works if I completly remove driveOrder. I wonder what is value of
Drivers.IndexedDB
?This does not work:
Doc comment: Possible default driverOrder options are: ['indexeddb', 'localstorage'] and the default is that exact ordering. Lie? Because
IonicStorageModule.forRoot()
works.