# When i run my app getting Provider - Error: No provider for Storage!?

**URL:** <https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944>\
**Category:** ionic-v3\
**Created:** [August 23, 2017, 6:59am UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944 "2017-08-23T06:59:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arulmano](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arulmano/32/107323_2.png) [@Arulmano](https://forum.ionicframework.com/u/Arulmano)\
**Post date:** [August 23, 2017, 6:59am UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/1 "2017-08-23T06:59:08Z")

</div>

i used storage in app.modules.ts file.  
import { BrowserModule } from ‘@angular/platform-browser’;  
import { ErrorHandler, NgModule } from ‘@angular/core’;  
import { IonicApp, IonicErrorHandler, IonicModule } from ‘ionic-angular’;  
import { SplashScreen } from ‘@ionic-native/splash-screen’;  
import { StatusBar } from ‘@ionic-native/status-bar’;  
import { IonicStorageModule } from ‘@ionic/storage’;

imports: [  
BrowserModule,HttpModule,  
IonicModule.forRoot(MyApp),IonicStorageModule.forRoot()  
],

---

<div class="post-metadata">

**Author:** ![HugoPetla](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hugopetla/32/109273_2.png) [@HugoPetla](https://forum.ionicframework.com/u/HugoPetla)\
**Post date:** [August 23, 2017, 11:55am UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/2 "2017-08-23T11:55:56Z")

</div>

I used to use [NativeStorage](https://ionicframework.com/docs/native/native-storage/), works fine for my use. You can give it a try, is almost the same as IonicStorage. Then just change your `app.module.ts` file to:

```auto
...
import { NativeStorage } from '@ionic-native/native-storage';
...

...
providers: [
..
NativeStorage,
..
]

```

---

<div class="post-metadata">

**Author:** ![HugoPetla](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hugopetla/32/109273_2.png) [@HugoPetla](https://forum.ionicframework.com/u/HugoPetla)\
**Post date:** [August 23, 2017, 12:01pm UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/3 "2017-08-23T12:01:29Z")

</div>

> [@Arulmano](#):
>
> IonicModule.forRoot(MyApp),IonicS

Did you installed it correctly?

Using

```auto
ionic cordova plugin add cordova-sqlite-storage

npm install --save @ionic/storage

```

---

<div class="post-metadata">

**Author:** ![Arulmano](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arulmano/32/107323_2.png) [@Arulmano](https://forum.ionicframework.com/u/Arulmano)\
**Post date:** [August 23, 2017, 12:03pm UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/4 "2017-08-23T12:03:24Z")

</div>

i have already tired this part but not working.

---

<div class="post-metadata">

**Author:** ![HugoPetla](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hugopetla/32/109273_2.png) [@HugoPetla](https://forum.ionicframework.com/u/HugoPetla)\
**Post date:** [August 23, 2017, 12:45pm UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/5 "2017-08-23T12:45:20Z")

</div>

Still not working? What’s the news?

---

<div class="post-metadata">

**Author:** ![Arulmano](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arulmano/32/107323_2.png) [@Arulmano](https://forum.ionicframework.com/u/Arulmano)\
**Post date:** [August 23, 2017, 12:49pm UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/6 "2017-08-23T12:49:21Z")

</div>

Yes, can you give me a any other ideas please.

---

<div class="post-metadata">

**Author:** ![HugoPetla](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hugopetla/32/109273_2.png) [@HugoPetla](https://forum.ionicframework.com/u/HugoPetla)\
**Post date:** [August 23, 2017, 1:25pm UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/7 "2017-08-23T13:25:37Z")

</div>

I think the error could be in the `app.module.ts` file, change the import to uppercase in the Storage like :

```auto
import {IonicStorageModule} from '@ionic/Storage';

```

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [August 23, 2017, 8:41pm UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/8 "2017-08-23T20:41:55Z")

</div>

No, the import should be lower case. Is there access to a complete repo that reproduces this problem?

---

<div class="post-metadata">

**Author:** ![Arulmano](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arulmano/32/107323_2.png) [@Arulmano](https://forum.ionicframework.com/u/Arulmano)\
**Post date:** [August 24, 2017, 4:12am UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/9 "2017-08-24T04:12:20Z")

</div>

please anyone give me how to solve this?

---

<div class="post-metadata">

**Author:** ![AaronSterling](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AaronSterling](https://forum.ionicframework.com/u/AaronSterling)\
**Post date:** [August 24, 2017, 4:26am UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/10 "2017-08-24T04:26:02Z")

</div>

Please give people the information they ask for if you want an answer.

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [August 24, 2017, 4:57am UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/11 "2017-08-24T04:57:45Z")

</div>

As @AaronSterling said, nobody can possibly solve this unless they have access to all the code that is potentially relevant, and you have not provided this so far.

---

<div class="post-metadata">

**Author:** ![Arulmano](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arulmano/32/107323_2.png) [@Arulmano](https://forum.ionicframework.com/u/Arulmano)\
**Post date:** [August 24, 2017, 5:00am UTC](https://forum.ionicframework.com/t/when-i-run-my-app-getting-provider-error-no-provider-for-storage/102944/12 "2017-08-24T05:00:16Z")

</div>

@all helpers, now i create new project then only i solve this problem. but i don’t know why this error will occurs. any body can find that solution please mention it
