@lawchihon wrote:
I am trying to use Font Awesome 5 in Ionic 3.20.0.
I followed https://fontawesome.com/how-to-use/on-the-web/using-with/angular and installed
- @fortawesome/angular-fontawesome@0.1.0-10
- @fortawesome/fontawesome-svg-core@1.2.0
- @fortawesome/free-solid-svg-icons@5.1.0
then in app.module.ts, I have
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; @NgModule({ declarations: [ MyApp, AboutPage, ContactPage, HomePage, TabsPage, ], imports: [ BrowserModule, HttpClientModule, FontAwesomeModule, IonicStorageModule.forRoot({ name: '__mydb', driverOrder: ['indexeddb', 'sqlite', 'websql'] }), IonicModule.forRoot(MyApp, {tabsHideOnSubPages: true}), ], bootstrap: [IonicApp], entryComponents: [ MyApp, AboutPage, ContactPage, HomePage, TabsPage, ], providers: [ StatusBar, SplashScreen, { provide: ErrorHandler, useClass: IonicErrorHandler} ] }) export class AppModule {}But when I run the app, it is showing
Uncaught Error: Unexpected value 'undefined' imported by the module 'AppModule'So why wouldn’t it found FontAwesomeModule?
Posts: 1
Participants: 1