美容

如何处理WebIDE里运行UI5应用遇到的404 not found错误

作者:admin 来源:原创 时间:2020年06月13日 06:52:32浏览:

  how to resolve 404 not found error for sap-ui-core.js after project is cloned to WebIDE

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

  

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

  

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

  

  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:

  

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

  

  And in the runtime it works as designed:

  

  

  要获取更多Jerry的原创文章,请关注公众号"汪子熙":

  

(来源:原创   admin)  

1.沙巴体育遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本网的原创文章,请转载时务必注明文章作者和"来源:沙巴体育",不尊重原创的行为沙巴体育或将追究责任;3.作者投稿可能会经沙巴体育编辑修改或补充。

阅读延展