- If ‘router-outlet’ is an Angular component, then verify that it is part of this module.If ‘router-outlet’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message.
app-routing.module
@NgModule({
declarations: [],
imports: [
CommonModule,
RouterModule.forRoot(
appRoutes,
{ enableTracing: true }
)
],
exports: [ RouterModule ]
})
Read More:
- Angular select Tag Error trying to diff ‘2’. Only arrays and iterables are allowed
- [Solved] Failed to invoke @ExceptionHandler method is reported after adding @ControllerAdvice
- [Solved] Vscode Error: “export ‘default‘ (imported as ‘VueRouter‘) was not found in ‘vue-router‘
- [Solved] Vue3 Error: export ‘createRouter‘ was not found in ‘vue-router‘
- Error starting vue project these dependencies were not found:create in ./src/router/modules/md.js
- How to Solve Koa Error: Cannot find module ‘koa-router‘
- [Solved] OpenCV VideoWriter Error: FFMPEG: tag ‘MP4V‘ is not supported with codec id 12 and format mp4
- [Solved] Angular12 ng build Error: Index html generation failed.
- Json: struct field readyReplicas has json tag but is not exported [How to Solve]
- AN ERROR MESSAGE APPEARS WHEN TOMCAT DEPLOYS A NEW PROJECT: INVALID BYTE TAG IN CONSTANT POOL: 15
- Solution of adding H264 error in ffmpeg compilation
- Solution of Vue router loading components on demand
- Error husky > pre-commit (node v10.16.3) is reported when git commit is submitted
- Angular Start Porject error: ERROR in The target entry-point “primeng/editor“ has missing dependencies:
- Filezilla Error: You appear to be behind a NAT router. Please configure the passive mode settings and …
- How to Solve Angular Error: error NG8002: Can‘t bind to ‘ngModel‘ since it isn‘t a known property of ‘input‘.
- Yaml is installed, and the error YAMLLoadWarning is reported as soon as the code runs: calling yaml.load() without Loader=… is deprecated, as the default Loader is unsafe.
- Angular_ Error: Cannot assign to a reference or variable!
- [Solved] error adding symbols: File in wrong format collect2: error: ld returned 1 exit status
- Angular6 rxjs start error in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ‘;’ expected.