天天看点

SAP UI5应用在SAP WebIDE里clone之后出现404 not found error for sap-ui-core.js错误的原因分析

Sent: Thursday, February 26, 2015 3:35 PM

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

SAP UI5应用在SAP WebIDE里clone之后出现404 not found error for sap-ui-core.js错误的原因分析

When you launch the project you will meet with the error message below:

SAP UI5应用在SAP WebIDE里clone之后出现404 not found error for sap-ui-core.js错误的原因分析

There is a 404 not found error:

SAP UI5应用在SAP WebIDE里clone之后出现404 not found error for 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:

SAP UI5应用在SAP WebIDE里clone之后出现404 not found error for 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:

SAP UI5应用在SAP WebIDE里clone之后出现404 not found error for sap-ui-core.js错误的原因分析

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

SAP UI5应用在SAP WebIDE里clone之后出现404 not found error for sap-ui-core.js错误的原因分析

And in the runtime it works as designed:

SAP UI5应用在SAP WebIDE里clone之后出现404 not found error for sap-ui-core.js错误的原因分析

继续阅读