cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Step 10 and Step 12

Tutorials: https://developers.sap.com/tutorials/btp-app-launchpad-service.html
--------------------------

executing fiori add deploy-config cf got error after entering cpapp-app-srv as destination

node:events:368

throw er; // Unhandled 'error' event

^

TypeError: Cannot read properties of undefined (reading 'addRoutingModules')

at e.exports._updateMtaConfig (/usr/local/lib/node_modules/@sap/generator-fiori/generators/deployment-generator/cf/index.js:1:11959)

at processTicksAndRejections (node:internal/process/task_queues:96:5)

at async e.exports._writeDeploymentConfigChanges (/usr/local/lib/node_modules/@sap/generator-fiori/generators/deployment-generator/cf/index.js:1:8525)

at async e.exports.writing (/usr/local/lib/node_modules/@sap/generator-fiori/generators/deployment-generator/cf/index.js:1:8282)

Emitted 'error' event oninstance at:

at Immediate.<anonymous> (/usr/local/lib/node_modules/@sap/generator-fiori/node_modules/yeoman-generator/lib/index.js:791:20)

at processImmediate (node:internal/timers:464:21)

Do you need to install @sap/generator-fiori globally?

npm install -g @sap/generator-fiori

I tried to to install @sap/generator-fiori with no success

iwona_hahn
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

We will have a look at your issue and slavipande22 will get back to you asap here.

Best regards,
Iwona

KungFuPanda
Explorer

Hi:

I am facing exactly the same issue in the mentioned tutorial steps.

Kind regards

Peter

Accepted Solutions (1)

Accepted Solutions (1)

slavipande22
Advisor
Advisor
0 Kudos

Hi yherwono,

Thanks for your feedback and sorry for the delayed answer!

Please re-run the module Add the SAP Launchpad Service starting from the result of the MTA deployment branch. You can find a link to it in the beginning of the module Add the SAP Launchpad Service. Here's a screenshot for your reference:

If the issue still persists after that, please share your mta.yaml file so we can investigate further.

Best regards,

Svetoslav

0 Kudos

Hi slavipande22 ,

I cloned from the mta branch and still facing the same issue. Attached is the mta.yaml file (renamed to mta.txt).

Thanks in advance.

Best regards,

Yudha

mta.txt

Answers (1)

Answers (1)

slavipande22
Advisor
Advisor
0 Kudos

Hi yherwono ,

The `mta.yaml` file looks OK to me. Could you double-check the following:

  • do you have Yeoman installed: `yo --version`? And if not, install it with `npm install -g yo`.
  • are there any hidden `.yo-rc.json` files in any of the folders of your project. If yes, delete them.

These are two of the reasons that can cause problems with the Fiori Generator.

Best regards,
Svetoslav

0 Kudos

yo is installed in my system, and I couldn't find the .yo-rc.json when I executed this. I continued the steps by using the solution branch and manually cut and paste the configuration to complete the task.