Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70752

Error: Unexpected value 'undefined' imported by the module 'AppModule

$
0
0

@mrossid wrote:

dear someone, please help me to fix this, i am a newbie ionic user,please

all i want to did is create a modal,show it when the fab botton is pressed.
but i had this err…

Error: Unexpected value 'undefined' imported by the module 'AppModule'
    at syntaxError (http://localhost:8100/build/vendor.js:75334:34)
    at http://localhost:8100/build/vendor.js:89963:40
    at Array.forEach (<anonymous>)
    at CompileMetadataResolver.getNgModuleMetadata (http://localhost:8100/build/vendor.js:89940:49)
    at JitCompiler._loadModules (http://localhost:8100/build/vendor.js:108410:87)
    at JitCompiler._compileModuleAndComponents (http://localhost:8100/build/vendor.js:108371:36)
    at JitCompiler.compileModuleAsync (http://localhost:8100/build/vendor.js:108287:37)
    at CompilerImpl.compileModuleAsync (http://localhost:8100/build/vendor.js:74170:49)
    at PlatformRef.bootstrapModule (http://localhost:8100/build/vendor.js:5799:25)
    at Object.201 (http://localhost:8100/build/main.js:247:109)

i’ve defined the modal in my app.module.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 { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { DetailsPage } from '../pages/details/details';
import { modalPage } from '../pages/add-modal/add-modal';
import { ShareServiceProvider } from '../providers/share-service/share-service';


import { HttpClientModule } from '@angular/common/http';

@NgModule({
  declarations: [
    MyApp,
    HomePage,
    DetailsPage
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
    HttpClientModule,modalPage
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    DetailsPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    ShareServiceProvider
  ]
})
export class AppModule{}

THANKS.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>