Skip to content

Module resolution fails in v1.7.0 when "baseUrl" is set in tsconfig #9671

@mprahl

Description

@mprahl

Versions

Angular CLI: 1.7.0
Node: 8.9.4
OS: linux x64
Angular: 5.2.5
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.7.0
@angular-devkit/build-optimizer: 0.3.1
@angular-devkit/core: 0.3.1
@angular-devkit/schematics: 0.3.1
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.0
@schematics/angular: 0.3.1
@schematics/package-update: 0.3.1
typescript: 2.6.2
webpack: 3.11.0

Repro steps

  • Run git clone https://github.com/mprahl/angular-cli-9671-reproducer.git
  • Run cd angular-cli-9671-reproducer && npm install && ng serve

Observed behavior

ERROR in ./src/app/app.module.ts
Module not found: Error: Can't resolve 'reproducer/hello/hello.component' in '/path/to/angular-cli-9671-reproducer/src/app'

Desired behavior

The imports should work as they did in v1.6.x.

Mention any other details that might be useful (optional)

The following commit broke this functionality: 29aa274

Running angular-cli with commit 29aa274 reverted works as expected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions