Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

generated apps with wrong baseUrl as TS config --> unable to compile lazyLoaded modules #969

Closed
Ricard opened this issue May 24, 2018 · 1 comment

Comments

@Ricard
Copy link

Ricard commented May 24, 2018

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

@filipesilva
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants