Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsconfig baseUrl in angular app not working #32284

Closed
yokots opened this issue Aug 11, 2017 · 2 comments
Closed

tsconfig baseUrl in angular app not working #32284

yokots opened this issue Aug 11, 2017 · 2 comments
Assignees
Labels
info-needed Issue requires more information from poster typescript Typescript support issues

Comments

@yokots
Copy link

yokots commented Aug 11, 2017

tsconfig baseUrl in angular app not working.

  • VSCode Version: 1.15.0
  • OS Version: macOS 10.12.5

Steps to Reproduce:

  1. The tsdk version is 2.4.2.
  2. The app is created by angular-cli, the src/tsconfig.app.json extend rootDirectory/tsconfig.json.
  3. The src/tsconfig.app.json configure baseUrl with './'.
  4. There are two ts files, src/environments/environment.ts and src/app/test.ts
  5. In src/app/test.ts, Import { environments } from 'environments/environment', and it show cannot find module 'environments/environment'. but it can be compiled successfully.

Reproduces without extensions: Yes

@vscodebot vscodebot bot added the typescript Typescript support issues label Aug 11, 2017
@mjbvz mjbvz added the info-needed Issue requires more information from poster label Aug 11, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Aug 11, 2017

We currently only pick up a config file if it is named tsconfig.json. The tsconfig.app.json project file is probably not being recognized at all in this case. Can you try renaming the file to tsconfig.json or creating an empty tsconfig.json that extends tsconfig.app.json

We are tracking support for specifying tsconfig files explicitly with #12463

@vscodebot vscodebot bot closed this as completed Aug 18, 2017
@vscodebot
Copy link

vscodebot bot commented Aug 18, 2017

This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

2 participants