-
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
@nx/js:tsc doesn't work with different rather than build task name #18257
Comments
these differences come from tmp/packages/direct-load/tsconfig.generated.json file |
what about introducing a special targetDefaults for @nx/js:tsc in nx.json? Something like:
It can be even default.. But what I want to say is that it feels more logical that is better stays hardcoded rather then inherits from a depentent project which is confusing to my opinion |
related: #11289 This is potentially fixable if you align all the build target names to be the same. For anyone having that error, solution: #17798 (comment) |
@mandarini correct, that's what I found too #18257 (comment) Not sure though if it's a good logic |
@ThePlenkov yeah, we're going to fix this at a later version, but for now it's the solution! :D |
@ThePlenkov did you solve the issue? In Nx 16.6.0, we introduced a new way to identify the build target of dependent buildable libraries. The new way doesn't rely on the targets having the same name, but rather on the information available in the task graph. This behavior is not yet enabled by default, but you can try it by setting the following env var: We're trying to get feedback whether this new way works as expected before turning it on by default. Could you try it and let us know how it goes? We want to know:
|
I'm closing this. For anyone coming to this, please refer to the explanation at #18257 (comment). Ensure your build pipeline definition is accurate and tasks depend on the correct tasks. Set the env var |
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
Hi!
I have noticed that if I rename build command to let's say build:tsc because I want to introduce another build task with build:tsc dependency - the command stops working. It seems thar it determines wrongly cwd and path to a config
Expected Behavior
It should be possible to rename build tasks and to run them as a dependency
GitHub Repo
No response
Steps to Reproduce
In my project.json the following task works as
nx build package
:but if defined like this - it doesn;t:
In the second case I have an error like:
which makes me just think that root folder is wrongly determined in used like this.
Could you please have a look?
Since we do not have post-targets I see this way of declaring targets as the most logical way to extend standard tasks without writing an own executor.
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: