on ‎2020 Nov 16 12:55 PM
When I create SAP Cloud Business Application it shows this message: Failed creating the CDS module.
Error log contents:
<code>4:30:23 PM (test) [INFO] Source code injection finished
4:30:23 PM (test) [INFO] ------------------------------------------------------------------------
4:30:23 PM (test) npm install -g @sap/generator-cds
4:30:23 PM (test) /hana/shared/HXE/xs/controller_data/executionagent/executionroot/84445782-2b1e-49eb-973c-5c3d3234e8fb/app/META-INF/resources/nodejs/vendor/node8.15/bin/cds-gen -> /hana/shared/HXE/xs/controller_data/executionagent/executionroot/84445782-2b1e-49eb-973c-5c3d3234e8fb/app/META-INF/resources/nodejs/vendor/node8.15/lib/node_modules/@sap/generator-cds/bin/cds-gen.js
4:30:23 PM (test) + @sap/generator-cds@2.17.0
4:30:23 PM (test) updated 1 package in 0.443s
4:30:23 PM (test) cds-gen init . --modules db,srv --mta --srv-technology nodejs --java-package my.company --insecure --odata-version odatav4 --force --skip-install --db-technology hana
4:30:23 PM (test) /hana/shared/HXE/xs/controller_data/executionagent/executionroot/84445782-2b1e-49eb-973c-5c3d3234e8fb/app/META-INF/resources/nodejs/vendor/node8.15/lib/node_modules/@sap/generator-cds/node_modules/fs-extra/lib/mkdirs/make-dir.js:85
4:30:23 PM (test) } catch {
4:30:23 PM (test) ^
4:30:23 PM (test) SyntaxError: Unexpected token {
4:30:23 PM (test) at createScript (vm.js:80:10)
4:30:23 PM (test) at Object.runInThisContext (vm.js:139:10)
4:30:23 PM (test) at Module._compile (module.js:617:28)
4:30:23 PM (test) at Object.Module._extensions..js (module.js:664:10)
4:30:23 PM (test) at Module.load (module.js:566:32)
4:30:23 PM (test) at tryModuleLoad (module.js:506:12)
4:30:23 PM (test) at Function.Module._load (module.js:498:3)
4:30:23 PM (test) at Module.require (module.js:597:17)
4:30:23 PM (test) at require (internal/module.js:11:18)
4:30:23 PM (test) at Object.<anonymous> (/hana/shared/HXE/xs/controller_data/executionagent/executionroot/84445782-2b1e-49eb-973c-5c3d3234e8fb/app/META-INF/resources/nodejs/vendor/node8.15/lib/node_modules/@sap/generator-cds/node_modules/fs-extra/lib/mkdirs/index.js:3:44)
4:30:23 PM (test) cds-gen init . --modules db,srv --mta --srv-technology nodejs --java-package my.company --insecure --odata-version odatav4 --force --skip-install --db-technology hana: 1
4:30:23 PM (test)
Any solutions out there?
Request clarification before answering.
no solutions but have you been running a tutorial or follow an official script?
there are quite a few new versions of the cds bundle out there and may need some tweaking in configuration to make it all work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://cap.cloud.sap/docs/releases/oct20
and by running:
user: projects $ cds version
@sap/cds: 4.3.0
@sap/cds-compiler: 1.45.0
@sap/cds-dk: 3.0.0
@sap/cds-foss: 2.2.0
@sap/cds-reflect: 2.13.3
@sap/cds-runtime: 2.6.7
Node.js: v10.22.1
home: /extbin/npm/globals/lib/node_modules/@sap/cds
but working off of a tutorial is the best way forward.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.