Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot import ‘IonicStorageModule’ from @ionic/storage

I get an error when trying to import 'IonicStorageModule' from @ionic/storage.

Please help.

like image 782
Golden Griffin Avatar asked Oct 20 '25 18:10

Golden Griffin


2 Answers

Found the solution.

Looks like currently npm doesn't install the latest ionic-version 2 storage module. The following npm install command only installs version 1.9

npm install @ionic/storage

Force-installing the latest storage module fixed the problem :-

npm install @ionic/[email protected]
like image 121
Golden Griffin Avatar answered Oct 23 '25 08:10

Golden Griffin


I passed by the same problem but I found a different solution. Instead using

npm install @ionic/storage

I used

yarn add @ionic/storage

Hope I helped.

like image 28
Rodrigo Chaves Avatar answered Oct 23 '25 08:10

Rodrigo Chaves



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!