on 2023 Nov 27 10:20 PM
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)
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
madhavi.beedam87
We have released a patch fixing this issue, please restart your dev space and try again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.