f 'router-outlet' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. code example
Example: If 'router-outlet' is an Angular component, then verify that it is part of this module.
@NgModule({
imports: [
BrowserModule,
RouterModule