on 11-27-2023 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)
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.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.