-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cannot build publishable & buildable library with sub-entries unless using dist path #3417
Comments
hey @nadavsinai...weird 🤔 . Can you provide a sample repo where I could reproduce the build issue? |
Try adding paths to the subfolders in
instead of
|
HI @ganeshpms , thanks for your reply. This is not so feasible for us. |
|
ah, I see your point, we will also hit the same issue soon. I just tried as following after your reply, it works with just two paths. It works also with another publishable library which has reference to this library.
to make it work, I just made sure the publishable build the components library as following, instead of the default
by keeping the
|
I did test it with the 74 direct references to the subpackages in the paths object and it did not work.
in addition subpackages exist directly underneath root - not underneath src |
I found this was my fault: some of the libraries had another builder - not "@nrwl/angular:package" but our own extended-lib-builder which adds stuff such as assets copying, pre/post build commands and other goodies, but internally it used ng-packager without the special runtime path mapping you're doing in package.imp.js (line 20) I changed our own builder to use the |
Hi, I'm facing the same issue but with react project... Can you provide me more info about the workaround? I know it's closed but... |
They care more about making features that no one needs instead of fixing the ones that exists. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Unless directing tsconfig path to dist folder, some of my workspace libraries fail to compile
with out of rootDir error.
for example when compiling our lib
sticky-notes
with it's tsconfig.json extending your regular tsconfig.base.jsonin which it could find '@algotec/ui-elements-webkit/' pointing to ["libs/ui-elements/"]
I get errors like these:
If I change to extend an alternative tsconfig.lib.json which changes all the paths to dist/libs/ the library can compile, but I have to get the compilation order right.
what's confusing is that I found that some libraries that have secondary entry points and relay on libs with secondary entry points do work, I am yet to find an explanation for that.
this issue is probably related to #2794 @juristr I'd love your help debugging this.
Expected Behavior
Compile buildable & publishable libraries also when they have secondary entry points
Steps to Reproduce
I did try to create a new workspace only for reproduction of this error and didn't succeed yet.
I will update here and point a link whenever I make it.
Environment
The text was updated successfully, but these errors were encountered: