Closed Hotell closed 3 months ago
@Hotell Can you provide more detail as to what I can clone and try to run from that PR that exhibits the problem? I tried to repro in a fresh run and did not see an issue.
yarn install
yarn nx reset
yarn nx run perf-test:test-perf
-> nothing will be run. this is the reported bug
perf-test
app overrides bundle
target to not run dependency build
targets ( global nx config ), but it won't run anything, so test-perf
wont have any assets ready to be run agains perf test So to recap:
Before (nx 19.3)
yarn nx run perf-test:test-perf
executes:
-> perf-test:bundle
-> perf-test:test-perf
After (nx 19.5)
yarn nx run perf-test:test-perf
executes:
-> nothing
when trying to run bundle
directly NX throw error
yarn nx run perf-test:bundle --skip-nx-cache --verbose
yarn run v1.23.34
$ /fluentui/node_modules/.bin/nx run perf-test:bundle --skip-nx-cache --verbose
🚨 NX Cannot find configuration for task perf-test:bundle
Error: Cannot find configuration for task perf-test:bundle
at ProcessTasks.createTask (/Users/martinhochel/Projects/msft/fluentui/node_modules/nx/src/tasks-runner/create-task-graph.js:141:19)
at ProcessTasks.processTasks (/Users/martinhochel/Projects/msft/fluentui/node_modules/nx/src/tasks-runner/create-task-graph.js:32:39)
at createTaskGraph (/Users/martinhochel/Projects/msft/fluentui/node_modules/nx/src/tasks-runner/create-task-graph.js:180:21)
at createTaskGraphAndRunValidations (/Users/martinhochel/Projects/msft/fluentui/node_modules/nx/src/tasks-runner/run-command.js:68:63)
at /Users/martinhochel/Projects/msft/fluentui/node_modules/nx/src/tasks-runner/run-command.js:96:27
at handleErrors (/Users/martinhochel/Projects/msft/fluentui/node_modules/nx/src/utils/params.js:22:30)
at runCommand (/Users/martinhochel/Projects/msft/fluentui/node_modules/nx/src/tasks-runner/run-command.js:94:52)
at Object.runOne (/Users/martinhochel/Projects/msft/fluentui/node_modules/nx/src/command-line/run/run-one.js:53:59)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /Users/martinhochel/Projects/msft/fluentui/node_modules/nx/src/command-line/run/command-object.js:19:13
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lemme know if you need anything else. ty
Ok, got a minimal repro locally. Thanks for the info @Hotell 👋
This team rocks! Thx a ton folks for quick fix. 🍻
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
dependsOn
overrides no longer workfollowing configuration worked with nx 19.3:
with nx 19.5 it doesn't work anymore:
Expected Behavior
dependsOn
overrides should work as before (merge of inferred target with manually specified bug)Workaround:
if full target definition is manually provided it works as before
GitHub Repo
https://github.com/microsoft/fluentui/pull/32136
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
yarn v1
Operating System
Additional Information
No response