on 11-29-2018 12:47 PM
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.
Here is the file structure.
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"
}
});
}());
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.
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.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
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I had faced below issues in my UI5 application.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.