Skip to content

Angular CLI 6.0.1 doesn't generate baseUrl in tsconfig.app.json #10837

@GolubevS

Description

@GolubevS

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

  1. ng new SomeProject --routing
  2. setup routing with lazy loading modules
  3. 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.

Mention any other details that might be useful (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions