generated apps with wrong baseUrl as TS config --> unable to compile lazyLoaded modules
Ricard opened this issue · 1 comments
Bug Report or Feature Request (mark with an x
)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Area
- [ ] devkit
- [x] schematics
Versions
Angular CLI: 6.0.3
NPM: 6.0.1
Node: 8.11.1
OS: darwin x64
Angular: 6.0.3
Repro steps
Here is a repo with the evidence. It's just an ng6 app created by CLI with one lazy loaded module, that doesn't compile. See readme for more info.
The log given by the failure
ng serve
ERROR in Could not resolve module app/lazyLoadedEvidence/lazyLoadedEvidence.module relative to /Users/Ricard/NG6Evidence/evidenceApp/src/app/app-routing.module.ts
Desired functionality
Typescript compiler should be able to resolve the absolute path described by Angular Router loadChildren property.
Mention any other details that might be useful
This was mentioned on some CLI issues
But analyzing the issue we can see its related to the scaffold typescript configuration, therefore it is related to schematics.
I guess the issue was introduced by this commit
Heya, I'll answer this issue in angular/angular-cli#10673. It generally falls under the umbrella of a CLI issue and it's easier for other people to see the response there.