-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Versions
<!--
Output from: `ng --version`.
If nothing, output from: `node --version` and `npm --version`.
Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
-->
Angular CLI: 6.0.1
Node: 10.1.0
OS: win32 x64
Angular: 6.0.1
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.6.1
@angular-devkit/build-angular 0.6.1
@angular-devkit/build-optimizer 0.6.1
@angular-devkit/core 0.6.1
@angular-devkit/schematics 0.6.1
@ngtools/webpack 6.0.1
@schematics/angular 0.6.1
@schematics/update 0.6.1
rxjs 6.1.0
typescript 2.7.2
webpack 4.6.0
Repro steps
- ng new SomeProject --routing
- setup routing with lazy loading modules
- ng serve
Observed behavior
<!-- Normally this includes a stack trace and some more information. -->
Failed to compile (ERROR in Could not resolve module app/users/users.module relative to ..../src/app/app-routing.module.ts)
Workaround: set "baseUrl" param to "./" value in tsconfig.app.json
Desired behavior
Angular CLI generates tsconfig.app.json with "baseUrl" value.