Skip to Content
0
Jan 03, 2022 at 05:59 AM

Tutorial steps 10 of "Add the SAP Launchpad Service" giving error

759 Views

At the Step 10 - "Add SAP Fiori elements Risks application" in this tutorial

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

Below error coming after executing command - fiori add deploy-config cf

Adding deploy-config to the project.
info Add:Deploy-config Using: @sap/fiori:deploy-config
? Destination name cpapp-app-srv
Error @sap/fiori:deploy-config cf --base ui5.yaml --config ui5-deploy.yaml 

Cannot read properties of undefined (reading 'addRoutingModules')
Do you need to install @sap/generator-fiori globally?
npm install -g @sap/generator-fiori
OR
yarn global add @sap/generator-fiori<br>

Did follow the work around suggestion given in other question, but not luck.

Started this step again with result from git branch -cap-mta-deployment.

Also did not have any hidded '.yo-rc.json' files in the floder as sugged in another question as well.

The help on deploy-config command not showing any subcommand option 'cf' as in excercise

PS C:\....\cpapp\app\risks> fiori add --help
SAP Fiori tools CLI.

COMMAND NAME:

    add - Create or update a target configuration

USAGE:

    fiori add [SUBCOMMAND] [...OPTIONS]

SUBCOMMANDS:

    deploy-config - Generate or update deploy config in ui5-deploy.yaml file.
                                                                                                         

        --package            -p         Package name of target deploy system                              

        --transport          -t         Transport number of target deploy system                          

        --client             -l         Client number of target deploy system                             

        --index              -i         Generate index.html in the app (y/n)                              

        --overwrite          -f         Overwrite existing deploy config (y/n)                            

        --config             -c         App deploy config file name if it is not ui5-deploy.yaml  

        --base               -b         App configuration file name if it is not ui5.yaml    <br>

Tried below, it is also the same result

PS C:\.....\cpapp\app\risks> npx -p @sap/ux-ui5-tooling fiori add deploy-config cf
Adding deploy-config to the project.
info Add:Deploy-config Using: @sap/fiori:deploy-config
? Destination name cpapp-app-srv
Error @sap/fiori:deploy-config cf --base ui5.yaml --config ui5-deploy.yaml 

Cannot read properties of undefined (reading 'addRoutingModules')
Do you need to install @sap/generator-fiori globally?
npm install -g @sap/generator-fiori
OR
yarn global add @sap/generator-fiori<br>

Appreciate your help. Thanks you.