Skip to Content
3
Oct 18, 2020 at 04:11 PM

Error: Failed creating the CDS module

209 Views Last edit Oct 18, 2020 at 05:13 PM 3 rev

Hello gurus

I stuck with creation project in SAP HANA.

I have installed image hxexsa with VMware Workstation 15 Player.

When i tried to create project from template SAP Cloud Platform Business Application I got an error

What interesting that I perfomed it before a lot of times and project was created sucessfully.

I deleted image, recreated again, cleared all Chrome settings, however I had the same result.

Maybe, someone experienced with this issue?

Previously, during creation I had green mark before message:

Now I see grey line.

Here the log file

4:30:43 PM (openSAPHANA1) [INFO] Injecting source code into builder...
4:30:43 PM (openSAPHANA1) [INFO] Source code injection finished
4:30:43 PM (openSAPHANA1) [INFO] ------------------------------------------------------------------------
4:30:43 PM (openSAPHANA1) npm install -g @sap/generator-cds
4:30:43 PM (openSAPHANA1) /hana/shared/HXE/xs/controller_data/executionagent/executionroot/f37284c7-be13-4a0f-aefc-21a87743d4e1/app/META-INF/resources/nodejs/vendor/node8.15/bin/cds-gen -> /hana/shared/HXE/xs/controller_data/executionagent/executionroot/f37284c7-be13-4a0f-aefc-21a87743d4e1/app/META-INF/resources/nodejs/vendor/node8.15/lib/node_modules/@sap/generator-cds/bin/cds-gen.js
4:30:43 PM (openSAPHANA1) + @sap/generator-cds@2.17.0
4:30:43 PM (openSAPHANA1) updated 1 package in 0.837s
4:30:43 PM (openSAPHANA1) cds-gen init . --modules db,srv --mta --srv-technology nodejs --java-package my.company --insecure --odata-version odatav4 --skip-sample-models --force --skip-install --db-technology hana
4:30:43 PM (openSAPHANA1) /hana/shared/HXE/xs/controller_data/executionagent/executionroot/f37284c7-be13-4a0f-aefc-21a87743d4e1/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:43 PM (openSAPHANA1)       } catch {
4:30:43 PM (openSAPHANA1)               ^
4:30:43 PM (openSAPHANA1) SyntaxError: Unexpected token {
4:30:43 PM (openSAPHANA1)     at createScript (vm.js:80:10)
4:30:43 PM (openSAPHANA1)     at Object.runInThisContext (vm.js:139:10)
4:30:43 PM (openSAPHANA1)     at Module._compile (module.js:617:28)
4:30:43 PM (openSAPHANA1)     at Object.Module._extensions..js (module.js:664:10)
4:30:43 PM (openSAPHANA1)     at Module.load (module.js:566:32)
4:30:43 PM (openSAPHANA1)     at tryModuleLoad (module.js:506:12)
4:30:43 PM (openSAPHANA1)     at Function.Module._load (module.js:498:3)
4:30:43 PM (openSAPHANA1)     at Module.require (module.js:597:17)
4:30:43 PM (openSAPHANA1)     at require (internal/module.js:11:18)
4:30:43 PM (openSAPHANA1)     at Object.<anonymous> (/hana/shared/HXE/xs/controller_data/executionagent/executionroot/f37284c7-be13-4a0f-aefc-21a87743d4e1/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:43 PM (openSAPHANA1) cds-gen init . --modules db,srv --mta --srv-technology nodejs --java-package my.company --insecure --odata-version odatav4 --skip-sample-models --force --skip-install --db-technology hana: 1
4:30:43 PM (openSAPHANA1) 
4:30:44 PM (Project Space) Project Space settings deleted successfully

How to reproduce this error.

I took a clean image. Installed it.

Create project from template

SAP Cloud Platform Business Application

next

next

next

next

Finish

and the error:

Attachments

4vfht.png (12.0 kB)