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
TypeError: Cannot read properties of undefined (reading 'allWorkspaceFiles')
at new NativeTaskHasherImpl (C:\...\monorepo\node_modules\nx\src\hasher\native-task-hasher-impl.js:11:47)
at new InProcessTaskHasher (C:\...\monorepo\node_modules\nx\src\hasher\task-hasher.js:36:27)
at createTaskHasher (C:\...\monorepo\node_modules\nx\src\hasher\create-task-hasher.js:13:16)
at invokeTasksRunner (C:\...\monorepo\node_modules\nx\src\tasks-runner\run-command.js:369:60)
at runCommandForTasks (C:\...\monorepo\node_modules\nx\src\tasks-runner\run-command.js:117:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async C:\...\monorepo\node_modules\nx\src\tasks-runner\run-command.js:105:29
at async handleErrors (C:\...\monorepo\node_modules\nx\src\utils\handle-errors.js:8:24)
at async runCommand (C:\...\monorepo\node_modules\nx\src\tasks-runner\run-command.js:104:20)
at async Object.runMany (C:\...\monorepo\node_modules\nx\src\command-line\run-many\run-many.js:43:24)
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
This appears to be some kind of issue with the task hasher and specifically the externals argument passed to InProcessTaskHasher and NativeTaskHasherImpl. Because this repo does not have strictNullChecks enabled, this property can be null when passed to NativeTaskHasherImpl which does not expect it to be null/undefined. And when storedFileMapis null-ish here that value is always null.
The text was updated successfully, but these errors were encountered:
Current Behavior
For any commands that run project tasks, the following error is reported:
This is only happening for our monorepo for users running from native Windows.
Expected Behavior
Expect the tasks to run as they would in WSL or macOS or native Linux.
GitHub Repo
Internal Repo
Steps to Reproduce
npm ci
npx nx run-many -t build --verbose
Running
npx nx show projects
also fails, but it just doesn't print anything and ends without error.Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
This appears to be some kind of issue with the task hasher and specifically the
externals
argument passed toInProcessTaskHasher
andNativeTaskHasherImpl
. Because this repo does not havestrictNullChecks
enabled, this property can benull
when passed toNativeTaskHasherImpl
which does not expect it to be null/undefined. And whenstoredFileMap
is null-ish here that value is alwaysnull
.The text was updated successfully, but these errors were encountered: