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
would execute the dev target on the config package and then execute the target dev in the app package. Currently I get an error that required property 'buildTarget' is missing, however, in this instance I don't need a build target. Nor is one specified in the example.
nx runs config:dev, which is a long running process and never executes app:build
I should also note that I am attempting to use this API to handle targets that are dependent on other targets with long running processes, i.e. start some process after another long running process starts, which is a discussion here: #16688
Expected Behavior
buildTarget should be optional
package app's "dev" script defined in package.json should be executed after running "config:dev" and waiting for output
now go to packages/app and delete project.json and rename _project.json to project.json
run nx dev app again
would expect to see starting app... from packages/app "dev" script, but given dependency on buildTarget it tries to run the build target which seems should be optional
Current Behavior
Have a monorepo with a fairly simple config in a package called "app" that depends on config:dev for the "dev" target.
Per https://nx.dev/recipes/node/wait-for-tasks#waituntiltargets it seems that the expected behavior would be that running
would execute the dev target on the config package and then execute the target dev in the app package. Currently I get an error that required property 'buildTarget' is missing, however, in this instance I don't need a build target. Nor is one specified in the example.
Required property 'buildTarget' is missing
When I do give it a build target just to see what happens
nx runs config:dev, which is a long running process and never executes app:build
I should also note that I am attempting to use this API to handle targets that are dependent on other targets with long running processes, i.e. start some process after another long running process starts, which is a discussion here: #16688
Expected Behavior
GitHub Repo
https://github.com/TroutZen/nx_wait_until_targets_repo_1
Steps to Reproduce
Can also be found in project README.md
Repro Steps
pnpm install
@ root of projectnx dev app
from root of projectnx dev app
againstarting app...
from packages/app "dev" script, but given dependency on buildTarget it tries to run the build target which seems should be optionalNx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: