SAP HANA XS Advanced中的index.html错误,创建Node.js模块

2020-09-01 15:41发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


您好,专家,我正在尝试遵循本教程。

https://developers.sap.com/tutorials/xsa-xsjs-xsodata.html#

要在XSA应用程序中创建Node.js模块。
在第6步中,我需要运行index.html模块,但出现以下错误:


/25/19 9:24:47.725 PM [APP/10-0]错误
 19/9/25 9:24:47.727 PM [APP/10-0]错误/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a/app/node_modules/@ sap /approuter/lib/utils/JsonValidator.js:30
 19/9/25 9:24:47.727 PM [APP/10-0]错误抛出新的VError('%s%s:%s',
 19/9/25/9:24:47.727 PM [APP/10-0]错误^ 9/25/19 9:24:47.727 PM [APP/10-0]错误VError:xs-app.json/authenticationMethod:No 枚举匹配:"路线"
 19/9/25 9:24:47.727 PM [APP/10-0] JsonValidator.validate的错误(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a/app /node_modules/@sap/approuter/lib/utils/JsonValidator.js:30:11)
 19/9/25 9:24:47.727 PM [APP/10-0] Object.validateXsApp(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a/app的错误/node_modules/@sap/approuter/lib/configuration/validators.js:128:15)
 19/9/25 9:24:47.727 PM [APP/10-0] ERR.Object.exports.loadConfiguration(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a /app/node_modules/@sap/approuter/lib/configuration/app-config.js:21:14)
 19/9/25 9:24:47.727 PM [APP/10-0]在Object.module.exports.load(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7  -389adb00d60a/app/node_modules/@sap/approuter/lib/configuration.js:19:34)
 19/9/25 9:24:47.727 PM [APP/10-0]引导时出现错误(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a/app/node_modules /@sap/approuter/lib/bootstrap.js:52:36)
 19/9/25 9:24:47.727 PM [APP/10-0] Approuter.start上的错误(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a/app /node_modules/@sap/approuter/approuter.js:67:13)
 19/9/25 9:24:47.727 PM [APP/10-0]对象处的ERR。<匿名>(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a /app/node_modules/@sap/approuter/approuter.js:144:6)
 19/9/25/9:24:47.727 PM [APP/10-0]模块._compile的错误(module.js:653:30)9/25/19 9:24:47.727 PM [APP/10-0]  Object.Module._extensions..js的ERR(module.js:664:10)
 19/9/25 9:24:47.727 PM [APP/10-0]模块加载时出现错误(module.js:566:32)

 

有人可以帮我吗,我是这项技术的初学者。
谢谢,
Sebastiano

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


您好,专家,我正在尝试遵循本教程。

https://developers.sap.com/tutorials/xsa-xsjs-xsodata.html#

要在XSA应用程序中创建Node.js模块。
在第6步中,我需要运行index.html模块,但出现以下错误:


/25/19 9:24:47.725 PM [APP/10-0]错误
 19/9/25 9:24:47.727 PM [APP/10-0]错误/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a/app/node_modules/@ sap /approuter/lib/utils/JsonValidator.js:30
 19/9/25 9:24:47.727 PM [APP/10-0]错误抛出新的VError('%s%s:%s',
 19/9/25/9:24:47.727 PM [APP/10-0]错误^ 9/25/19 9:24:47.727 PM [APP/10-0]错误VError:xs-app.json/authenticationMethod:No 枚举匹配:"路线"
 19/9/25 9:24:47.727 PM [APP/10-0] JsonValidator.validate的错误(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a/app /node_modules/@sap/approuter/lib/utils/JsonValidator.js:30:11)
 19/9/25 9:24:47.727 PM [APP/10-0] Object.validateXsApp(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a/app的错误/node_modules/@sap/approuter/lib/configuration/validators.js:128:15)
 19/9/25 9:24:47.727 PM [APP/10-0] ERR.Object.exports.loadConfiguration(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a /app/node_modules/@sap/approuter/lib/configuration/app-config.js:21:14)
 19/9/25 9:24:47.727 PM [APP/10-0]在Object.module.exports.load(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7  -389adb00d60a/app/node_modules/@sap/approuter/lib/configuration.js:19:34)
 19/9/25 9:24:47.727 PM [APP/10-0]引导时出现错误(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a/app/node_modules /@sap/approuter/lib/bootstrap.js:52:36)
 19/9/25 9:24:47.727 PM [APP/10-0] Approuter.start上的错误(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a/app /node_modules/@sap/approuter/approuter.js:67:13)
 19/9/25 9:24:47.727 PM [APP/10-0]对象处的ERR。<匿名>(/hana/shared/HXE/xs/controller_data/executionagent/executionroot/93746b4c-66d3-464a-b4f7-389adb00d60a /app/node_modules/@sap/approuter/approuter.js:144:6)
 19/9/25/9:24:47.727 PM [APP/10-0]模块._compile的错误(module.js:653:30)9/25/19 9:24:47.727 PM [APP/10-0]  Object.Module._extensions..js的ERR(module.js:664:10)
 19/9/25 9:24:47.727 PM [APP/10-0]模块加载时出现错误(module.js:566:32)

 

有人可以帮我吗,我是这项技术的初学者。
谢谢,
Sebastiano

付费偷看设置
发送
2条回答
ZJXianG
1楼-- · 2020-09-01 15:55

如日志所述:在您的xs-app.json文件中," routes"值不是属性" authenticationMethod"的有效值。 它需要设置为"路线"。

lukcy2020
2楼-- · 2020-09-01 15:58

塞巴斯蒂安·马尔凯西尼我认为新消息是 也清楚。 您在xs-app.json中引用了core-xsjs-backend,但是在mta.yaml中未定义它。

一周热门 更多>