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
Building an Angular library using the @nx/angular:ng-packagr-lite executor from the root of the mono-repo works correctly but if it is ran from a subdirectory it throws an error.
Expected Behavior
The ng-packagr-lite command should work if run from a subdirectory.
Running any other nx command (test or lint) or building the angular-store from a subdirectory in the mono-repo works just fine.
> nx run my-lib:build:production
Building Angular Package
NX error TS5012: Cannot read file '/Users/.../nx-recipes/angular-monorepo/libs/my-lib/libs/my-lib/tsconfig.lib.prod.json': ENOENT: no such file or directory, open '/Users/.../nx-recipes/angular-monorepo/libs/my-lib/libs/my-lib/tsconfig.lib.prod.json'.
error TS18003: No inputs were found in config file '/Users/.../nx-recipes/angular-monorepo/tmp/libs/my-lib/tsconfig.generated.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'.
Pass --verbose to see the stacktrace.
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
…ends from the correct path (#23165)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->
<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->
## Current Behavior
<!-- This is the behavior we have today -->
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->
Fixes#23091
Current Behavior
Building an Angular library using the
@nx/angular:ng-packagr-lite
executor from the root of the mono-repo works correctly but if it is ran from a subdirectory it throws an error.Expected Behavior
The ng-packagr-lite command should work if run from a subdirectory.
Running any other nx command (test or lint) or building the
angular-store
from a subdirectory in the mono-repo works just fine.GitHub Repo
https://github.com/nrwl/nx-recipes
Steps to Reproduce
git clone https://github.com/nrwl/nx-recipes
cd ./nx-recipes/angular-monorepo/
npm install
nx g @nx/angular:lib my-lib --directory=libs/my-lib --buildable
cd ./libs/my-lib/
nx build my-lib
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: