Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ionic - export 'IonicStorageModule' was not found in '@ionic/storage'

I want to use storage in ionic (based on angular), so I did all that described here: https://ionicframework.com/docs/v3/storage/ and import it like this:

import { IonicStorageModule } from '@ionic/storage';

but I get this error:

export 'IonicStorageModule' was not found in '@ionic/storage'

My ionic version is 6.13.1.

like image 304
RafaelJan Avatar asked Mar 24 '21 21:03

RafaelJan


2 Answers

The use of storage was changed in ionic and now you need to import it as following:

import { IonicStorageModule } from '@ionic/storage-angular';

As described in details here: https://github.com/ionic-team/ionic-storage

like image 97
RafaelJan Avatar answered Oct 19 '22 11:10

RafaelJan


For angular need to install as

npm install --save @ionic/storage-angular

Then

import { IonicStorageModule } from '@ionic/storage-angular'; 
like image 37
Tashi Avatar answered Oct 19 '22 13:10

Tashi