0.0.3 • Published 4 years ago

unknown-html-schematics v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

unknown-html-schematics

This angular schematics fix - unknown HTML element or component - common angular error

Error

Installation

npm install --save-dev unknown-html-schematics

Usage

Add selector and path from error

Check out main image. 1. it's path 2. it's selector

ng g unknown-html-schematics:fix --selector app-item --path src/app/app.component.html

when you import external modules for well-known modules

  1. path to external module
  2. external module name
ng g unknown-html-schematics:fix --selector mat-card --path src/app/app.component.html --moduleImportPath @angular/material/mat-card --moduleName MatCardModule

It should fix error.

Looking for issues

This repo want to cover the most cases of unknown HTML element or component error please if this schematics doesn't fix your error. Please open an issue on github.

License

Luis Reinoso MIT license