Alguien me ayuda con esto , nose que pasa , soy nuevo


#1


#2

You need to add it to @NgModule({ ... in app/app.modules.ts

probably in the providers: [ array


#3

no entiendo amigo asi ? porfa ayudame


#4

yes | sí, ese es el boleto


#5

ahora me sale esto amigo


#6

remove MyApp from entryComponents: [ array


#7

sigue igual amigo :frowning:


#8

¿Puedes mostrarme la aplicación.modules.ts aquí? haga clic en </> y pegue el texto entre


#9
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 { AgmCoreModule } from '@agm/core';
import { HttpModule } from '@angular/http';


import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { RestaurantPage } from '../pages/restaurant/restaurant';
import { AgregarRestaurantPage } from './../pages/agregar-restaurant/agregar-restaurant';
import { AppRate } from '@ionic-native/app-rate';

@NgModule({
  declarations: [
    MyApp,
    HomePage,
    RestaurantPage,
    AgregarRestaurantPage,

  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp),
    AgmCoreModule.forRoot({
      apiKey: 'AIzaSyCsk9OLDVfDS18F8Dg6_xEp-kpiTf8qA4M'
    }),

  ],
  bootstrap: [IonicApp],
  entryComponents: [
    HomePage,
    RestaurantPage,
    AgregarRestaurantPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    AppRate
  ]
})
export class AppModule {}


#10

elimine todas las líneas de MyApp de aquí, no necesita importarlas :wink:


#11

elimine todo mira , pero si elimino IonicModule.forRoot(MyApp), me bota un error


#12


#13

que borraste? muéstrame el archivo de nuevo


#14
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 { AgmCoreModule } from '@agm/core';
import { HttpModule } from '@angular/http';



import { HomePage } from '../pages/home/home';
import { RestaurantPage } from '../pages/restaurant/restaurant';
import { AgregarRestaurantPage } from './../pages/agregar-restaurant/agregar-restaurant';
import { AppRate } from '@ionic-native/app-rate';

@NgModule({
  declarations: [
    HomePage,
    RestaurantPage,
    AgregarRestaurantPage,

  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp),
    AgmCoreModule.forRoot({
      apiKey: 'AIzaSyCsk9OLDVfDS18F8Dg6_xEp-kpiTf8qA4M'
    }),

  ],
  bootstrap: [IonicApp],
  entryComponents: [
    HomePage,
    RestaurantPage,
    AgregarRestaurantPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    AppRate
  ]
})
export class AppModule {}

#15

lo siento, lo miré mal, lo puse de nuevo


#16

remove the AppRate references from app.modules.ts, does it run


#17

no entiendo elimino todo lo que dice AppRate ?


#18

Amigo porfa ayudame, nose si tienes facebook o por gmail, te pasaria el proyecto, ando haciendo esto para una feria tecnologica en la uni y quiero presentarla , porfa :frowning:


#19

return to this in app.modules.ts

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 { AgmCoreModule } from '@agm/core';
import { HttpModule } from '@angular/http';

import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { RestaurantPage } from '../pages/restaurant/restaurant';
import { AgregarRestaurantPage } from './../pages/agregar-restaurant/agregar-restaurant';
import { AppRate } from '@ionic-native/app-rate';

@NgModule({
  declarations: [
    MyApp,
    HomePage,
    RestaurantPage,
    AgregarRestaurantPage,

  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp),
    AgmCoreModule.forRoot({
      apiKey: 'AIzaSyCsk9OLDVfDS18F8Dg6_xEp-kpiTf8qA4M'
    }),

  ],
  bootstrap: [IonicApp],
  entryComponents: [
    HomePage,
    RestaurantPage,
    AgregarRestaurantPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    AppRate
  ]
})
export class AppModule {}

did you follow this https://ionicframework.com/docs/native/app-rate/


#20

Amigo no sale ningun error en visual pero cuando ejecuto ionic serve sale eso