After you have cloned one project from github to webide as below:

UI5应用clone到webIDE后,如何处理无法加载sap-ui-core.js的错误

When you launch the project you will meet with the error message. There is a 404 not found error:

UI5应用clone到webIDE后,如何处理无法加载sap-ui-core.js的错误

Compared to a normal project which is created via WebIDE itself, it is easy to figure out that a file is missing:

UI5应用clone到webIDE后,如何处理无法加载sap-ui-core.js的错误

This neo-app.json is necessary for WebIDE to launch the ui5 application, and it will be automatically created by WebIDE if you create a new project there - normally we do not need to change it manually. However, if you clone a ui5 project which is not created by WebIDE ( for example created by Eclipse ), then you have to add this neo-app.json manually.
For entryPath you can just keep its default value, and the mapping for it could be customized, as displayed in the example below:

UI5应用clone到webIDE后,如何处理无法加载sap-ui-core.js的错误

Then in your index.html you have to use the customized path accordingly:

UI5应用clone到webIDE后,如何处理无法加载sap-ui-core.js的错误

And in the runtime it works as designed:

UI5应用clone到webIDE后,如何处理无法加载sap-ui-core.js的错误
UI5应用clone到webIDE后,如何处理无法加载sap-ui-core.js的错误

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
UI5应用clone到webIDE后,如何处理无法加载sap-ui-core.js的错误

相关文章:

  • 2022-12-23
  • 2021-07-16
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2021-09-07
  • 2021-07-18
猜你喜欢
  • 2021-08-30
  • 2021-11-09
  • 2021-11-16
  • 2021-07-06
  • 2022-01-11
  • 2021-11-26
相关资源
相似解决方案