Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.09 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.09 KB

Evidence of Angular CLI (schematics) issue

This project was generated with Angular CLI v 6.0.3 to show an issue with app generator.

Bug description

Lazy loaded modules does not compile on newly generated angular 6 app due to its path can't be resolved.

It was commented

Reproduce

This project is the evidence, you can clone it and compile to see the error.

npm i
ng serve

ERROR in Could not resolve module app/lazyLoadedEvidence/lazyLoadedEvidence.module relative to /Users/Ricard/NG6Evidence/evidenceApp/src/app/app-routing.module.ts

The steps followed was to generate a new routing app with a module containing component:

ng new evidenceApp --routing
cd evidenceApp
ng g module lazyLoadedEvidence --routing
ng g component lazyLoadedEvidence/evidenceApp