RafaelJan
RafaelJan

Reputation: 3606

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.

Upvotes: 8

Views: 10097

Answers (2)

Tashi
Tashi

Reputation: 683

For angular need to install as

npm install --save @ionic/storage-angular

Then

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

Upvotes: 11

RafaelJan
RafaelJan

Reputation: 3606

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

Upvotes: 21

Related Questions