Skip to Content
0
Oct 07, 2019 at 10:38 AM

manifest.json not loading although component.js was found

629 Views

Hello,

I want to deploy an App on a Launchpad.

But when I'm launching this application, it doesn't work.

I can see that manifest.json couldn't be found but component.js is.

URL Component : .../sap/bc/ui5_ui5/sap/ZMOVIEINFO/~BF8DCCF5368E2E701CB61BD8A3EAFD3E~C/Component.js

URL Manifest : .../sap/bc/ui5_ui5/ui2/ushell/resources/~20180316143600~/MovieInfo/manifest.json

If i try

.../sap/bc/ui5_ui5/sap/ZMOVIEINFO/~BF8DCCF5368E2E701CB61BD8A3EAFD3E~C/manifest.json IT WORKS !

So why system try to search to another adress than Component for my manifest ...

here's my component.js file :

sap.ui.define([
    "sap/ui/core/UIComponent",
    "sap/ui/Device",
    "MovieInfo/model/models"
], function(UIComponent, Device, models) {
    "use strict";

    return UIComponent.extend("MovieInfo.Component", {

        metadata: {
            manifest: "json"
        },

        /**
         * The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
         * @public
         * @override
         */
        init: function() {
            // call the base component's init function
            UIComponent.prototype.init.apply(this, arguments);

            // set the device model
            this.setModel(models.createDeviceModel(), "device");
        }
    });
});

In my resources.json file :

{
    "resources": [
[...]
        {
            "name": "Component.js"
        },
[...]
        {
            "name": "manifest.json"
        },
[...]
    ]
}

What did i did wrong ?

Application works perfectly from SAP Web IDE in test mode.