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
I am trying to build a library that does not have sub entry points but has absolute imports between its components along with path mappings in tsconfig.
How To Reproduce
I created a small library for reproducing the error.
Please note:
in projects/lib-path-mapping/src/lib/comp1/comp1.component.ts
ERROR: Entry point lib-path-mapping/comp2 which is required by lib-path-mapping doesn't exists.
An unhandled exception occurred: Entry point lib-path-mapping/comp2 which is required by lib-path-mapping doesn't exists.
Expected Behaviour
I would expect that path mappings are considered before any sub entry checks done on the source files.
The whole idea of ng-packagr is to package libraries in the Angular Package Format and from what I can tell, what you are trying to do isn't really compatible with APF. I would suggest that you stick to relative imports and sub-packages (sub entry points).
If what you are trying to do is work around the performance issue that you've mentioned in #1758, you should close this story and provide more information there, together with a reproduction repository.
Type of Issue
Description
I am trying to build a library that does not have sub entry points but has absolute imports between its components along with path mappings in tsconfig.
How To Reproduce
I created a small library for reproducing the error.
Please note:
projects/lib-path-mapping/src/lib/comp1/comp1.component.ts
projects/lib-path-mapping/tsconfig.lib.json
ng build
Expected Behaviour
I would expect that path mappings are considered before any sub entry checks done on the source files.
I suspect that the issue comes from
ng-packagr/src/lib/ng-package/entry-point/analyse-sources.transform.ts
Line 97 in 551a4d9
Is it possible to take into account path mappings before adding the
potentialDependency
?from
to
Thank you.
Version Information
The text was updated successfully, but these errors were encountered: