Skip to content

Paths in tsconfig in Angular CLI #24362

Closed
@antonkarsten

Description

@antonkarsten
  • VSCode Version: 1.11
  • OS Version: Ubuntu 16

Steps to Reproduce:

  1. Checkout the following repo https://github.com/antonkarsten/sample
  2. Have a look at the tsconfig file is src/tsconfig.app.json (so it is not the tsconfig.json in the root). This is particular to angular-cli (https://cli.angular.io/)
    If you look on line 8 in src/app/app.module.ts you can see how I imported the button component. VSCode shows this as an error.
  3. But the project works because of the paths property in the tsconfig.app.json. When you run the project (with the command ng serve) everything is fine.

Maybe Im doing something wrong. Thats possible as well
Anton

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)javascriptJavaScript support issuestypescriptTypescript support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions