cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MDK - Local web deploy error with Empty project

madhavi_beedam87
Explorer
0 Kudos

Hi Experts,

When I try to deploy the MDK app to local web it used to work. But today I am facing an error like below without any code change. (I tried to create an empty MDK project and got the same error in the Debug Console). Please Help.

-----

/home/user/.asdf-inst/shims/node ./../nstest-approuter/node_modules/@sap/html5-repo-mock/index.js --standalone /nstest/index.html --ui5 {"version":"."}

HTML5 Apps Repo Mock is running on port: 5001

logger.js:76

#2.0#2023 11 27 22:11:42:187#+00:00#WARNING#/LoggingLibrary################PLAIN##Dynamic log level switching not available#

Logger.js:22

Process exited with code 1

#2.0#2023 11 27 22:11:42:847#+00:00#INFO#/approuter#####lphgrurk##########lphgrurk#PLAIN##Application router version 14.3.4#

Logger.js:22

Uncaught Error Error: Neither xsappConfig nor /home/user/projects/WebApplicationFactory/MDKModule/xs-app.json files were found

at getWorkingDirectory (/home/user/projects/WebApplicationFactory/nstest-approuter/node_modules/@sap/approuter/lib/environment.js:19:13)

at module.exports.load (/home/user/projects/WebApplicationFactory/nstest-approuter/node_modules/@sap/approuter/lib/configuration.js:14:32)

at bootstrap (/home/user/projects/WebApplicationFactory/nstest-approuter/node_modules/@sap/approuter/lib/bootstrap.js:64:38)

Accepted Solutions (1)

Accepted Solutions (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I think this is the same issue as https://answers.sap.com/questions/14010836/error-while-running-mdk-project-locally.html

Copying the solution from there.

The workaround for local run is :

1) copy xs-app.json from /home/user/projects/WebApplicationFactory/MDKModule/webapp to /home/user/projects/WebApplicationFactory/MDKModule

2) click run button of 'Run WebApplicationFactory' from 'Run Configurations' View.

madhavi_beedam87
Explorer
0 Kudos

Thanks Bill. It solved the problem.

Answers (3)

Answers (3)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

madhavi.beedam87

We have released a patch fixing this issue, please restart your dev space and try again.

madhavi_beedam87
Explorer
0 Kudos

Hi Zang,

I am not deploying to mobile services but running within the BAS environment.

I selected a new app with Empty MDK template. No extra coding Or services to backend.

Chose below options to run in the web browser

MDK : Deploy > Your Dev Space Run as a local web app > App Id (default) > select Version (default) >

Include source map : Yes >Target Client version : any (MDK6.x/ 23.x) > here onwards any option

It says : Deployed successfully > Start running .. then in the debug console it show the error

thomas_zang
Explorer
0 Kudos

May we know in which landscape you got this issue? canary or production?