# Uncaught Error: Cannot find module "@ionic-native/core"

**URL:** <https://forum.ionicframework.com/t/uncaught-error-cannot-find-module-ionic-native-core/85448>\
**Category:** ionic-v3\
**Created:** [April 5, 2017, 9:45am UTC](https://forum.ionicframework.com/t/uncaught-error-cannot-find-module-ionic-native-core/85448 "2017-04-05T09:45:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavan2](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@pavan2](https://forum.ionicframework.com/u/pavan2)\
**Post date:** [April 5, 2017, 9:45am UTC](https://forum.ionicframework.com/t/uncaught-error-cannot-find-module-ionic-native-core/85448/1 "2017-04-05T09:45:54Z")

</div>

![image](https://global.discourse-cdn.com/ionicframework/original/3X/7/1/71e7d4ba4d5341803d98a004101ca443d7db2264.png)

I am running into a runtime error of Uncaught Error: Cannot find module “@ionic-native/core” when i am trying to use Apprate Plugin.

I did run the below mentioned commands.

ionic plugin add cordova-plugin-apprate npm install --save @ionic-native/app-rate

---

<div class="post-metadata">

**Author:** ![El\_Dee565](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/el_dee565/32/99956_2.png) [@El\_Dee565](https://forum.ionicframework.com/u/El_Dee565)\
**Post date:** [April 5, 2017, 11:17am UTC](https://forum.ionicframework.com/t/uncaught-error-cannot-find-module-ionic-native-core/85448/2 "2017-04-05T11:17:22Z")

</div>

Have you ran $ mom install --save @ionic-native/core?

---

<div class="post-metadata">

**Author:** ![pavan2](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@pavan2](https://forum.ionicframework.com/u/pavan2)\
**Post date:** [April 5, 2017, 11:24am UTC](https://forum.ionicframework.com/t/uncaught-error-cannot-find-module-ionic-native-core/85448/3 "2017-04-05T11:24:24Z")

</div>

> [@El\_Dee565](#):
>
> mom install --save @ionic-native/core

I have run this command when i started my project. Anyway when i ran this command now. I got another Runtime Error stating **“Error in ./MyApp class MyApp\_Host - caused by: No provider for AppRate!”.**

---

<div class="post-metadata">

**Author:** ![El\_Dee565](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/el_dee565/32/99956_2.png) [@El\_Dee565](https://forum.ionicframework.com/u/El_Dee565)\
**Post date:** [April 5, 2017, 11:38am UTC](https://forum.ionicframework.com/t/uncaught-error-cannot-find-module-ionic-native-core/85448/4 "2017-04-05T11:38:03Z")

</div>

Well to fix that issue you should open up the app module file import apprate and then add apprate to the providers array of the module.

providers: [Apprate]

---

<div class="post-metadata">

**Author:** ![pavan2](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@pavan2](https://forum.ionicframework.com/u/pavan2)\
**Post date:** [April 5, 2017, 12:08pm UTC](https://forum.ionicframework.com/t/uncaught-error-cannot-find-module-ionic-native-core/85448/5 "2017-04-05T12:08:40Z")

</div>

Here is my app.module.ts file

import { NgModule, ErrorHandler } from ‘@angular/core’;  
import { IonicApp, IonicModule, IonicErrorHandler } from ‘ionic-angular’;  
import { MyApp } from ‘./app.component’;  
import {TranslateModule,TranslateStaticLoader,TranslateLoader} from ‘ng2-translate’;  
import { Http, HttpModule } from ‘@angular/http’;  
import {BrowserModule} from ‘@angular/platform-browser’;  
import { Ng2Bs3ModalModule } from ‘ng2-bs3-modal/ng2-bs3-modal’;  
import { AppRate } from ‘@ionic-native/app-rate’;

//Import Pages.  
import { TabsPage } from ‘…/pages/tabs/tabs’;  
import { HomePage } from ‘…/pages/home/home’;  
import { OffersPage } from ‘…/pages/offers/offers’;  
import { NewsPage } from ‘…/pages/news/news’;  
import { ScanPage } from ‘…/pages/scan/scan’;  
import { ProfilePage } from ‘…/pages/profile/profile’;  
import { ResultsPage } from ‘…/pages/results/results’;  
import { FirstPagePage } from ‘…/pages/first-page/first-page’;  
import { LoginPage } from ‘…/pages/login/login’;  
import { RegistrationPage } from ‘…/pages/registration/registration’;  
import { ShowOfferPage } from ‘…/pages/show-offer/show-offer’;  
import { NewsshowPage } from ‘…/pages/newsshow/newsshow’;  
import { MypointsPage } from ‘…/pages/mypoints/mypoints’;  
import { OtpPage } from ‘…/pages/otp/otp’;  
import { PhoneNoPage } from ‘…/pages/phone-no/phone-no’;  
import { EditInfoPage } from ‘…/pages/edit-info/edit-info’;  
import { FeedbackPage } from ‘…/pages/feedback/feedback’;  
import { RedeemPage } from ‘…/pages/redeem/redeem’;  
import { ShowTimerPage } from ‘…/pages/show-timer/show-timer’;  
import { FaqPage } from ‘…/pages/faq/faq’;  
import { QrscanPage } from ‘…/pages/qrscan/qrscan’;  
import { LoaderPage } from ‘…/pages/loader/loader’;  
import { PushNotificationPage } from ‘…/pages/push-notification/push-notification’;  
import { ShowNotificationPage } from ‘…/pages/show-notification/show-notification’;  
import { LanguagePage } from ‘…/pages/language/language’;

//Import Providers.  
import { ApiProvider } from ‘…/providers/apiprovider’;  
import { LoginProvider } from ‘…/providers/login-provider’;  
import { FunctionProvider } from ‘…/providers/function-provider’;

@NgModule({  
declarations: [  
MyApp,  
OffersPage,  
NewsPage,  
HomePage,  
ScanPage,  
ProfilePage,  
FirstPagePage,  
LoginPage,  
RegistrationPage,  
TabsPage,  
ResultsPage,  
ShowOfferPage,  
NewsshowPage,  
MypointsPage,  
OtpPage,  
PhoneNoPage,  
EditInfoPage,  
FeedbackPage,  
RedeemPage,  
ShowTimerPage,  
FaqPage,  
QrscanPage,  
LoaderPage,  
PushNotificationPage,  
ShowNotificationPage,  
LanguagePage  
],  
imports: [  
BrowserModule,  
HttpModule,  
Ng2Bs3ModalModule,  
TranslateModule.forRoot({  
provide: TranslateLoader,  
useFactory: (http: Http) =\> new TranslateStaticLoader(http, ‘assets/i18n’, ‘.json’),  
deps: [Http]  
}),  
IonicModule.forRoot(MyApp,{tabsPlacement: ‘top’,platforms: {  
android: {  
tabsHideOnSubPages: true,  
tabsHighlight: true,  
},  
ios:{  
tabsHideOnSubPages: true,  
tabsHighlight: true,  
}  
}},  
// {

```
// links: [
// { component: TabsPage, name: 'Home', segment: 'home' },
// { component: TabsPage, name: 'Offers', segment: 'offers' },
// { component: TabsPage, name: 'Offers', segment: 'offers/:offerId' },
// { component: TabsPage, name: 'Scan', segment: 'scan' },
// { component: TabsPage, name: 'News', segment: 'news' },
// { component: TabsPage, name: 'ShowNews',segment: 'shownews/:newsId' },
// { component: TabsPage, name: 'Profile', segment: 'myProfile' },
// { component: TabsPage, name: 'Profile', segment: 'myPoints' },
// { component: TabsPage, name: 'Profile', segment: 'myRewards' },
// { component: TabsPage, name: 'Profile', segment: 'myRewards/:offerId' }

// ]

// }
)

```

],  
bootstrap: [IonicApp],  
entryComponents: [  
MyApp,  
OffersPage,  
NewsPage,  
HomePage,  
ScanPage,  
ProfilePage,  
FirstPagePage,  
LoginPage,  
RegistrationPage,  
TabsPage,  
ResultsPage,  
ShowOfferPage,  
NewsshowPage,  
MypointsPage,  
OtpPage,  
PhoneNoPage,  
EditInfoPage,  
FeedbackPage,  
RedeemPage,  
ShowTimerPage,  
FaqPage,  
QrscanPage,  
LoaderPage,  
PushNotificationPage,  
ShowNotificationPage,  
LanguagePage  
],

providers: [{provide: ErrorHandler, useClass: IonicErrorHandler},ApiProvider,LoginProvider,FunctionProvider,AppRate]  
})  
export class AppModule {

}

---

<div class="post-metadata">

**Author:** ![pavan2](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@pavan2](https://forum.ionicframework.com/u/pavan2)\
**Post date:** [April 5, 2017, 12:10pm UTC](https://forum.ionicframework.com/t/uncaught-error-cannot-find-module-ionic-native-core/85448/6 "2017-04-05T12:10:15Z")

</div>

But now i am getting a runtime exception stating **“ctorParameters.map is not a function”**

---

<div class="post-metadata">

**Author:** ![pavan2](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@pavan2](https://forum.ionicframework.com/u/pavan2)\
**Post date:** [April 6, 2017, 11:37am UTC](https://forum.ionicframework.com/t/uncaught-error-cannot-find-module-ionic-native-core/85448/7 "2017-04-06T11:37:26Z")

</div>

Hi El\_Dee565,

Thanks for helping me out. I got to know where i was doing wrong. I removed @ionic-native/apprate from the import and reverted back to the previous changes. I was not assigning AppRate.promptForRating(); to true wherever i was writing code for displaying the Rating Popup. This resolved my issue and now i am getting redirected to PlayStore. Thanks for your efforts in making me understand what went wrong.

Thanks  
Pavan.
