-
Notifications
You must be signed in to change notification settings - Fork 12k
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 IDE support for multi project workspace #20476
Comments
There is already a |
Hi @alan-agius4, |
I think that in the case the extends should be different, since I am assuming that you also want to paths to be available in your spec files as otherwise from the spec files certain "virtual" modules will not be able to be resolved. Hence, the hierarchy of tsconfigs should be more like the below, were the application specific path mappings are defined in
That being said, I don't think that the Angular CLI should generate the mentioned TypeScript configuration for a number of reasons;
Personal observation, in general I'd stick to path mappings purely for design time resolution as intended by the TypeScript compiler and not for runtime which would always require a bundler like Webpack to be configured and thought how to interpret those mappings to make your JavaScript output runnable. |
Look, I am no expert in typescript or its configuration magic, all I am saying is that angular is doing something fundamentally wrong by using a non standard tsconfig filename to solve its own problems, this creates a issue for the developers because their ide is behaving differently than the angular compiler. Basically the IDE does not care what you or I think, it looks for a specific file. The |
There are multiple TS configurations ( We do provide a root level To keep all configuration files named Something like the below
The true resolution for this is to use "solution style tsconfigs", which we did back in version 10, but following a discussion with the TypeScript team we decided to roll back until several issues that impacted DX were resolved. You can read more about this here: microsoft/TypeScript#39632 |
🚀 Feature request
Command (mark with an
x
)Description
see above.
The problem I encountered is that I was not able to use
paths
configuration in tsconfig, the compiler works but the ide cries.Describe the solution you'd like
Add
tsconfig.json
file at the application directoryExample:
The text was updated successfully, but these errors were encountered: