You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If compiler paths are not defined in tsconfig.base.json, but in a separate tsconfig-file, which the former extends, any imports using those path aliases are ignored during the creation of the project graph.
Expected Behavior
The resulting/complete tsconfig.base.json is used for the project graph creation.
We have two reasons for wanting to move the paths into a separate file:
we have over 200 paths, which make the tsconfig.base.json less readable
we also moved the paths for our tsconfig.prod.json-files out into the same folder for re-use and for simplifying keeping them in sync
Using nx generate to create a new lib adds the path to tsconfig.base.json, which then needs to be moved manually. It would be nice to consider any extends and add the paths to the first extended config that includes a path object already, but that's not essential.
The text was updated successfully, but these errors were encountered:
Current Behavior
If compiler paths are not defined in
tsconfig.base.json
, but in a separate tsconfig-file, which the former extends, any imports using those path aliases are ignored during the creation of the project graph.Expected Behavior
The resulting/complete
tsconfig.base.json
is used for the project graph creation.GitHub Repo
https://github.com/rene-leanix/nx-20.2.2-compiler-paths
Steps to Reproduce
nx graph --file stdout
in the example repo does not show that lib1 depends on lib2.Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
We have two reasons for wanting to move the paths into a separate file:
tsconfig.base.json
less readabletsconfig.prod.json
-files out into the same folder for re-use and for simplifying keeping them in syncUsing
nx generate
to create a new lib adds the path totsconfig.base.json
, which then needs to be moved manually. It would be nice to consider any extends and add the paths to the first extended config that includes a path object already, but that's not essential.The text was updated successfully, but these errors were encountered: