Skip to content

Paths decalred in compilerOptions tsconfig.app.json not working #17873

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

Closed
alexmtzs opened this issue Jun 6, 2020 · 2 comments
Closed

Paths decalred in compilerOptions tsconfig.app.json not working #17873

alexmtzs opened this issue Jun 6, 2020 · 2 comments

Comments

@alexmtzs
Copy link

alexmtzs commented Jun 6, 2020

I have already seen some issues related with this topic here but any one can fix my issue..

CONTEXT OF THE ISSUE:
It is curios i have similar setup in other project and it is working perfect. As context of how i got on this, I'm trying to do a merge between ASP .Net Boilerplate but replaing the front with ngx-admin.

Original project uses only main tsconfig.json file in source. Ngx-admin uses tsconfig.json main folder and tsconfig.app.json and tsconfig.spec.json in src folder. As well as tsconfig.e2e.json in e2e folder.
All was perfect until i started merging this files.

So, I created and attached a smaill brand new repro project:

STEPS TO DUPLICATE

  1. Download the attached project
  2. Run npm install
  3. Open src/AppPreBootstrap.ts file
  4. BUG: You will see that the import to AppConsts class does not work as @shared/AppConsts is not recognized.
  5. BUG: Try to retype @sha and intellisense does not bring the option to add @shared........
  6. Optionally you can run ng serve, But in this project this issue does not affect the compilation but warning about classes not used.
    DuplicateTsConfigissue.zip
    ErrorTSCONFIG
@alan-agius4
Copy link
Collaborator

Hi @alexmtzs, this is a duplicate of #8138 and was addressed in version 10 via #17586.

The fix requires TypeScript 3.9 which leverages the usage of the new "solutions style" tsconfig files. You can read about this here https://devblogs.microsoft.com/typescript/announcing-typescript-3-9-rc/#solution-style-tsconfig

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants