Software⏱️ 2 min read📅 2026-06-03
How to Fix: CUSTOM_ELEMENTS_SCHEMA added to NgModule.schemas still showing Error
Learn how to fix: CUSTOM_ELEMENTS_SCHEMA added to NgModule.schemas still showing Error.
Quick Answer: Try checking your system settings or restarting.
📋 Table of Contents
The error 'cl-header' is not a known element
🛑 Root Causes of the Error
- Angular 2 rc6 has changed its schema, and custom elements are not automatically registered.
✅ Best Solutions to Fix It
Adding CUSTOM_ELEMENTS_SCHEMA to NgModule.schemas
- Step 1: Import the CUSTOM_ELEMENTS_SCHEMA in your main application module (AppModule).
- Step 2: Add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of your main application module.
- Step 3: This will register custom elements and prevent the error from occurring.
Using Web Components with Angular
- Step 1: Check if you are using Web Components in your project.
- Step 2: If yes, then ensure that they are correctly registered with the Angular framework.
💡 Conclusion
To resolve the issue, add CUSTOM_ELEMENTS_SCHEMA to NgModule.schemas in your main application module. This will register custom elements and prevent the error from occurring.
❓ Frequently Asked Questions
Angular 2 rc6 has changed its schema, and custom elements are not automatically registered.
Step 1: Import the CUSTOM_ELEMENTS_SCHEMA in your main application module (AppModule).Step 2: Add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of your main application module.Step 3: This will register custom elements and prevent the error from occurring.
Step 1: Check if you are using Web Components in your project.Step 2: If yes, then ensure that they are correctly registered with the Angular framework.
To resolve the issue, add CUSTOM_ELEMENTS_SCHEMA to NgModule.schemas in your main application module. This will register custom elements and prevent the error from occurring.
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Fix Pc crashes shortly after launching game (rainbow six siege). Compl
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: New PC build- no signal and no clue
Fix New PC build- no signal and no clue. Complete troubleshooting guid