on 2024 Jul 18 11:28 AM
I am getting the following error while executing an mta.yaml build or while executing "cds watch" command.
I am not entirely sure what is to be done for this.
user: xsuaa-user-test $ cds watch --profile hybrid
node:events:496
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, stat '/home/user/projects/xsuaa-user-test/gen/srv/node_modules/@types/sap__cds'
at statSync (node:fs:1659:25)
at #watchFile (node:internal/fs/recursive_watch:152:28)
at #watchFolder (node:internal/fs/recursive_watch:129:26)
at #watchFolder (node:internal/fs/recursive_watch:131:30)
at #watchFolder (node:internal/fs/recursive_watch:131:30)
at #watchFolder (node:internal/fs/recursive_watch:131:30)
at #watchFolder (node:internal/fs/recursive_watch:131:30)
at [kFSWatchStart] (node:internal/fs/recursive_watch:200:26)
at Object.watch (node:fs:2461:36)
at tryWatch (/managed-content/globals/pnpm/5/.pnpm/node-watch@0.7.4/node_modules/node-watch/lib/watch.js:131:15)
Emitted 'error' event on Watcher instance at:
at /managed-content/globals/pnpm/5/.pnpm/node-watch@0.7.4/node_modules/node-watch/lib/watch.js:134:15
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/home/user/projects/xsuaa-user-test/gen/srv/node_modules/@types/sap__cds',
filename: '/home/user/projects/xsuaa-user-test'
}
Node.js v20.12.0
Hmm the fact it worked earlier makes me think they released an update of one of the components.
Neverthess, when looking at the error it seems you are using typescript? I assume this because the error complaints about missing types. In that case, can you try to use cds-ts to run the watch command like this “cds-ts watch —profile hybrid”
kr, Wouter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.