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)

View Entire Topic
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.