nx icon indicating copy to clipboard operation
nx copied to clipboard

Proper configurations for dependent publishable libs (Angular) giving error is not under 'rootDir'

Open bizappzone opened this issue 2 years ago • 0 comments

Current Behavior

Simple setup with 3 angular libs Lib-A - publishable @myOrg/Lib-A Lib-B - publishable @myOrg/Lib-B Lib-C - publishable @myOrg/Lib-C

Now Lib-C imports

  • @myOrg/Lib-A,
  • @myOrg/Lib-B Now executing build @myOrg/Lib-C get error Lib-A, Lib-B error is not under 'rootDir'

both A and B are published.

What configurations are missing? paths for A &B are in tsconfig.base.json

Why can this not resolve from packages/Lib-A or Packages/Lib-B??

Expected Behavior

Lib-C should build from local lib (as if it were installed in package.json (node_modules). Or resolve from dist/LibA?

GitHub Repo

No response

Steps to Reproduce

Nx Report

Node   : 18.15.0
   OS     : win32 x64
   npm    : 9.3.1
   Hasher : Native
   
   nx                 : 16.2.2
   @nx/js             : 16.2.2
   @nx/jest           : 16.2.2
   @nx/linter         : 16.2.2
   @nx/workspace      : 16.2.2
   @nx/angular        : 16.2.2
   @nx/cypress        : 16.2.2
   @nx/devkit         : 16.2.2
   @nx/eslint-plugin  : 16.2.2
   @nx/storybook      : 16.2.2
   @nrwl/tao          : 16.2.2
   @nx/web            : 16.2.2
   @nx/webpack        : 16.2.2
   typescript         : 5.0.4
   ---------------------------------------
   Community plugins:
   @compodoc/compodoc    : 1.1.21
   @ngrx/component-store : 16.0.1
   @ngrx/effects         : 16.0.1
   @ngrx/entity          : 16.0.1
   @ngrx/router-store    : 16.0.1
   @ngrx/schematics      : 16.0.1
   @ngrx/store           : 16.0.1
   @ngrx/store-devtools  : 16.0.1
   @storybook/angular    : 7.0.20

Failure Logs

No response

Operating System

  • [ ] macOS
  • [ ] Linux
  • [ ] Windows
  • [ ] Other (Please specify)

Additional Information

No response

bizappzone avatar Jul 04 '23 16:07 bizappzone