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
I'm trying to build fullstack app and I've created the monorepo with react as one project.
I've installed @nx/express plugin, and run the command, nx g @nx/express:app api --directory=apps/api.
After that, running nx serve api throws daemon error:
[[NX Daemon Server] - 2024-04-19T00:12:18.505Z - Started listening on: /tmp/471748216075e11e7d54/d.sock
[NX Daemon Server] - 2024-04-19T00:12:18.507Z - [WATCHER]: Subscribed to changes within: /home/igor/projects/myprojects/coffeshop (native)
[NX Daemon Server] - 2024-04-19T00:12:18.510Z - Established a connection. Number of open connections: 1
[NX Daemon Server] - 2024-04-19T00:12:18.510Z - Established a connection. Number of open connections: 2
[NX Daemon Server] - 2024-04-19T00:12:18.512Z - Closed a connection. Number of open connections: 1
[NX Daemon Server] - 2024-04-19T00:12:18.513Z - [REQUEST]: Client Request for Project Graph Received
[NX Daemon Server] - 2024-04-19T00:12:18.624Z - [REQUEST]: Updated workspace context based on watched changes, recomputing project graph...
[NX Daemon Server] - 2024-04-19T00:12:18.624Z - [REQUEST]:
[NX Daemon Server] - 2024-04-19T00:12:18.624Z - [REQUEST]:
[NX Daemon Server] - 2024-04-19T00:12:18.909Z - [REQUEST]: Responding to the client. project-graph
[NX Daemon Server] - 2024-04-19T00:12:18.910Z - Time taken for 'total for creating and serializing project graph' 396.21349999999995ms
[NX Daemon Server] - 2024-04-19T00:12:18.911Z - Done responding to the client project-graph
[NX Daemon Server] - 2024-04-19T00:12:18.911Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 397. Response time: 2.
[NX Daemon Server] - 2024-04-19T00:12:18.954Z - [REQUEST]: Responding to the client. handleHashTasks
[NX Daemon Server] - 2024-04-19T00:12:18.954Z - Done responding to the client handleHashTasks
[NX Daemon Server] - 2024-04-19T00:12:18.954Z - Handled HASH_TASKS. Handling time: 8. Response time: 0.
[NX Daemon Server] - 2024-04-19T00:12:18.955Z - Time taken for 'Load Nx Plugin: /home/igor/projects/myprojects/coffeshop/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_typ_ilc6bha6x27zkxd3csesxxyivu/node_modules/nx/src/plugins/project-json/build-nodes/package-json-next-to-project-json' 1.4206000000000358ms
[NX Daemon Server] - 2024-04-19T00:12:19.217Z - Established a connection. Number of open connections: 2
[NX Daemon Server] - 2024-04-19T00:12:19.218Z - Closed a connection. Number of open connections: 1
[NX Daemon Server] - 2024-04-19T00:12:19.218Z - Established a connection. Number of open connections: 2
[NX Daemon Server] - 2024-04-19T00:12:19.220Z - [REQUEST]: Client Request for Project Graph Received
[NX Daemon Server] - 2024-04-19T00:12:19.222Z - [REQUEST]: Responding to the client. project-graph
[NX Daemon Server] - 2024-04-19T00:12:19.222Z - Time taken for 'total for creating and serializing project graph' 1.5667999999999438ms
[NX Daemon Server] - 2024-04-19T00:12:19.223Z - Done responding to the client project-graph
[NX Daemon Server] - 2024-04-19T00:12:19.223Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 2. Response time: 1.
[NX Daemon Server] - 2024-04-19T00:12:19.225Z - Established a connection. Number of open connections: 3
[NX Daemon Server] - 2024-04-19T00:12:19.391Z - Established a connection. Number of open connections: 4
[NX Daemon Server] - 2024-04-19T00:12:19.392Z - Closed a connection. Number of open connections: 3
[NX Daemon Server] - 2024-04-19T00:12:19.392Z - Established a connection. Number of open connections: 4
[NX Daemon Server] - 2024-04-19T00:12:19.393Z - [REQUEST]: Client Request for Project Graph Received
[NX Daemon Server] - 2024-04-19T00:12:19.395Z - [REQUEST]: Responding to the client. project-graph
[NX Daemon Server] - 2024-04-19T00:12:19.395Z - Time taken for 'total for creating and serializing project graph' 1.19399999999996ms
[NX Daemon Server] - 2024-04-19T00:12:19.396Z - Done responding to the client project-graph
[NX Daemon Server] - 2024-04-19T00:12:19.396Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 2. Response time: 1.
/home/igor/projects/myprojects/coffeshop/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_typ_ilc6bha6x27zkxd3csesxxyivu/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 'api:build' could not be found
at NativeTaskHasherImpl.hashTasks (/home/igor/projects/myprojects/coffeshop/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_typ_ilc6bha6x27zkxd3csesxxyivu/node_modules/nx/src/hasher/native-task-hasher-impl.js:32:36)
at InProcessTaskHasher.hashTasks (/home/igor/projects/myprojects/coffeshop/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_typ_ilc6bha6x27zkxd3csesxxyivu/node_modules/nx/src/hasher/task-hasher.js:53:50)
at handleHashTasks (/home/igor/projects/myprojects/coffeshop/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_typ_ilc6bha6x27zkxd3csesxxyivu/node_modules/nx/src/daemon/server/handle-hash-tasks.js:30:56)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async handleResult (/home/igor/projects/myprojects/coffeshop/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_typ_ilc6bha6x27zkxd3csesxxyivu/node_modules/nx/src/daemon/server/server.js:110:16)
at async handleMessage (/home/igor/projects/myprojects/coffeshop/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_typ_ilc6bha6x27zkxd3csesxxyivu/node_modules/nx/src/daemon/server/server.js:84:9)
at async /home/igor/projects/myprojects/coffeshop/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_typ_ilc6bha6x27zkxd3csesxxyivu/node_modules/nx/src/daemon/server/server.js:45:9 {
code: 'GenericFailure'
}
Node.js v21.7.3
[NX Daemon Server] - 2024-04-19T00:12:19.547Z - Started listening on: /tmp/471748216075e11e7d54/d.sock
[NX Daemon Server] - 2024-04-19T00:12:19.549Z - [WATCHER]: Subscribed to changes within: /home/igor/projects/myprojects/coffeshop (native)
[NX Daemon Server] - 2024-04-19T00:12:19.553Z - Established a connection. Number of open connections: 1
[NX Daemon Server] - 2024-04-19T00:12:19.554Z - Established a connection. Number of open connections: 2
[NX Daemon Server] - 2024-04-19T00:12:19.556Z - Closed a connection. Number of open connections: 1
[NX Daemon Server] - 2024-04-19T00:12:19.557Z - [REQUEST]: Responding to the client. recordOutputsHash
[NX Daemon Server] - 2024-04-19T00:12:19.558Z - Done responding to the client recordOutputsHash
[NX Daemon Server] - 2024-04-19T00:12:19.558Z - Handled RECORD_OUTPUTS_HASH. Handling time: 0. Response time: 1.
[NX Daemon Server] - 2024-04-19T00:12:19.655Z - [REQUEST]: Responding to the client. PROCESS_IN_BACKGROUND
[NX Daemon Server] - 2024-04-19T00:12:19.655Z - Done responding to the client PROCESS_IN_BACKGROUND
[NX Daemon Server] - 2024-04-19T00:12:19.655Z - Handled PROCESS_IN_BACKGROUND. Handling time: 88. Response time: 0.
[NX Daemon Server] - 2024-04-19T00:12:19.656Z - Uploading file artifacts
[NX Daemon Server] - 2024-04-19T00:12:19.656Z - Done uploading file artifacts
[NX Daemon Server] - 2024-04-19T00:12:19.656Z - Sending EndRun request
[Nx Cloud] Unable to detect a VCS context from the environment.
NX RunEnd. Completed tasks
[
{
"taskId": "api:serve:development",
"startTime": "2024-04-19T00:12:19.035Z",
"target": "serve",
"projectName": "api",
"hash": "17017700872152712475",
"hashDetails": {
"nodes": {
"api:TsConfig": "13212889751028739518",
"{workspaceRoot}/nx.json": "2150262712796911757",
"{workspaceRoot}/.gitignore": "6001627455120491323",
"api:ProjectConfiguration": "17957350656122849209",
"{workspaceRoot}/.nxignore": "3244421341483603138",
"api:{projectRoot}/**/*": "9899729286361621478"
},
"runtime": {},
"implicitDeps": {}
},
"params": "",
"uploadedToStorage": false,
"endTime": "2024-04-19T00:12:19.559Z",
"status": 1,
"cacheStatus": "cache-miss",
"terminalOutput": "\u001b[1m\u001b[31mWatch error..."
}
]
[NX Daemon Server] - 2024-04-19T00:12:19.715Z - Closed a connection. Number of open connections: 0
RunEnd duration: 330
[NX Daemon Server] - 2024-04-19T00:12:19.996Z - Done sending EndRun request
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to build fullstack app and I've created the monorepo with react as one project.
I've installed
@nx/express
plugin, and run the command,nx g @nx/express:app api --directory=apps/api
.After that, running
nx serve api
throwsdaemon
error:Package.json
I'm using
pnpm
, onWindows 11
withWSL2
Beta Was this translation helpful? Give feedback.
All reactions