cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Failed creating the CDS module

Former Member
0 Likes
886

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?

View Entire Topic
Former Member

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.

Former Member
0 Likes

Where can I check those CDS bundles? Can you please provide a link?