cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to load changes to component.js in over view application

0 Kudos

Hi Experts,

I created an overview application with custom cards. While running the application even though all cards are getting loaded, I'm getting the below error which specifying to main component.js.

error-component.png

Here is the file structure.

file-structure.png

The code of component.js goes here

(function () {

"use strict";

/*global sap, jQuery */

/** * @fileOverview Application component to display information on entities from the GWSAMPLE_BASIC

* OData service.

* @version @version@

*/

jQuery.sap.declare("FullPath.Component");

jQuery.sap.require("sap.ovp.app.Component");

sap.ovp.app.Component.extend("FullPath.Component", {

metadata: {

manifest: "json"

}

});

}());

Accepted Solutions (0)

Answers (3)

Answers (3)

If you received the following 2 errors in your SAPUI5 application in the WEBIDE environment regarding missing of /appconfig/fioriSandboxConfig.json and Loading changes for ...Component failed as shown in the following picture:

Then simply add the following .json files with empty body - only put {} as the content in the *.json files- and then you will not see the errors anymore.

  1. Beside of the webapp folder create a new folder and name it appconfig, then inside of this new folder create a new file and name it fioriSandboxConfig.json, and finally add {} as the content of the json file.
  2. Beside of the Component.js file create a new file and name it Component-changes.json and fill it with {} again.

Refresh your app to check the errors gone from console hopefully!

For some reasons we don't see these error messages in Fiori Launchpad.

0 Kudos

Hello,

I had faced below issues in my UI5 application.

  1. The request for flexibility settings failed; A default response is generated and returned to consuming APIs.
  2. Loading changes for ...Component failed.

The above issues were resolved when I used SAPUI5 visual editor to increase the column width of table displayed on click of F4 help of smart filter bar.

former_member274566
Discoverer
0 Kudos

Hi Ranjeeta,

The code of component.js goes here

(function () {

"use strict";

/*global sap, jQuery */

/** * @fileOverview Application component to display information on entities from the GWSAMPLE_BASIC

* OData service.

* @version @version@

*/

jQuery.sap.declare("<Your Application's Full Name>.Component");

jQuery.sap.require("sap.ovp.app.Component");

sap.ovp.app.Component.extend("<Your Application's Full Name>.Component", {

metadata: {

manifest: "json"

}

});

}());

If you want to find out the full name of your Application go to pom.xml file then search

<artifactId>sap.ovp.demo</artifactId>

In the above example sap.ovp.demo is the full name of your Application.

Hence path will be sap.ovp.demo.Component for the above example.

Regards,

Abhishek

0 Kudos

Hi Abhishek,

Full path is perfectly correct. And the Component.js of webapp is auto generated.

Problem is while debugging break point of Component.js is hitting and loading perfectly. But it is giving error as not able to load the changes.

Since manifest file is being called by Component.js and all cards are doing their jobs correctly I don't think there might be any issue in Component.js . And on other hand don't know why this error is occurring.

Regards

Ranjeeta