-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Building a publishable library that is extending another publishable library (shared library). #5840
Comments
As stated in nrwl/nx#2479 (comment) the "outputs" property needs to be assigned in the angular.json when a default path is changed in the ng-package.json. However I did not change the path so I think something else is wrong here. I opened an Issue nrwl/nx#5840.
After further investigation I've found a solution. I suggest this should be communicated in the docs and/or it potentially could be a bug. juristr pointed out here that if the I cannot remember changing the For others stumbling upon this problem: |
For my part this issue is resolved. I'll let it open in case it is relevant for nrwl team. If you're a dev/community manager and feel like this needs no further investigation, you can close it. And a thank you for the awesome work 👍. I really enjoy nx! |
When generating a library, there was an issue where Nx was not generating the |
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. |
I'm having the troubles when building a publishable lib that is extending another publishable lib.
Setup:
I read these issues to make sure this is not a dupe: #3518 #2794 #602
Repo to reproduce: GitHub or GitHub1s
I've also first asked this question on slack to make sure it's not a trivial thing that I'm missunderstanding.
I assume I'm doing someting wrong and expecially after reading #3518 I suspect my config to be wrong. However, I cannot figure out what exactly is wrong and maybe it is a edge case that is not "correctly" handeld yet.
One more thing, the libs are written in a way to support secondary entry points. So maybe thats the root of the issue.
Current Behavior
The command
nx run lib-extend:build --with-deps
returns an error.Expected Behavior
It should build the lib-extend library without erroring out.
For context, it never worked for me.
However, I have two idea of what could be the cause of the error:
Steps to Reproduce
I can run
nx run dev-app:build
andnx run lib-core:build
without any problems. However, when I runnx run lib-extend:build --with-deps
I get the error in section "Failure Logs":Failure Logs
Environment
The text was updated successfully, but these errors were encountered: