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
If you add yarn.lock to .gitignore for a monorepo with nestjs, the project will crash with an error.
Error message:
NX Daemon process terminated and closed the connection
Please rerun the command, which will restart the daemon.
If you get this error again, check forany errorsin the daemon process logs found in: /mnt/Storage/Development/angular/nx-gitignore-bug/.nx/workspace-data/d/daemon.log
If you remove yarn.lock from .gitignore, everything is fine.
Expected Behavior
Adding yarn.lock should not affect server startup with yarn.
/mnt/Storage/Development/angular/taro/node_modules/nx/src/hasher/native-task-hasher-impl.js:32
const plans = this.planner.getPlansReference(tasks.map((t) => t.id), taskGraph); ^Error: The externalDependency 'webpack-cli' for 'backend:build' could not be found at NativeTaskHasherImpl.hashTasks (/mnt/Storage/Development/angular/taro/node_modules/nx/src/hasher/native-task-hasher-impl.js:32:36) at InProcessTaskHasher.hashTasks (/mnt/Storage/Development/angular/taro/node_modules/nx/src/hasher/task-hasher.js:41:46) at handleHashTasks (/mnt/Storage/Development/angular/taro/node_modules/nx/src/daemon/server/handle-hash-tasks.js:30:56) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async handleResult (/mnt/Storage/Development/angular/taro/node_modules/nx/src/daemon/server/server.js:172:16) at async handleMessage (/mnt/Storage/Development/angular/taro/node_modules/nx/src/daemon/server/server.js:110:9) at async /mnt/Storage/Development/angular/taro/node_modules/nx/src/daemon/server/server.js:72:9 { code: 'GenericFailure'}Node.js v22.11.0
Package Manager Version
4.5.3
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Fafnur
changed the title
Error: The externalDependency 'webpack-cli' for 'project:build' could not be found
NestJS - Error: The externalDependency 'webpack-cli' for 'project:build' could not be found.
Nov 29, 2024
I have the same exact problem. Added package-lock.json to gitignore monorepo wouldn't start even after re-cloning the repo and fresh modules install.
Removing package-lock.json from .gitignore instantly fixed it.
Current Behavior
If you add yarn.lock to .gitignore for a monorepo with nestjs, the project will crash with an error.
Error message:
If you remove yarn.lock from .gitignore, everything is fine.
Expected Behavior
Adding yarn.lock should not affect server startup with yarn.
GitHub Repo
https://github.com/Fafnur/nx-gitignore-bug
Steps to Reproduce
"packageManager": "[email protected]"
nodeLinker: node-modules
yarn.lock
in .gitignoreNx Report
Failure Logs
Package Manager Version
4.5.3
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: