I have imported { IonicModule } from '@ionic/angular'; and added schemas: [ CUSTOM_ELEMENTS_SCHEMA ] to my component.module.ts file, but am still getting the
"'ion-button' is not a known element: 1. If 'ion-button' is an Angular component, then verify that it is part of this module. 2. If 'ion-button' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message." Error.
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormComponentComponent } from './form-component/form-component.component';
import { IonicModule } from '@ionic/angular';
@NgModule({
declarations: [FormComponentComponent],
imports: [
CommonModule,
IonicModule
],
schemas: [ CUSTOM_ELEMENTS_SCHEMA ]
})
export class FormModule { }
IonicModule. Have you importedIonicModulein yourapp.module.tsasIonicModule.forRoot()? - Wesley