cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Visual Studio Code - Issues to access standard library/component after App migration

Armelle_R
Explorer
0 Likes
1,393

Hello,

I am working on a specific FIORI app that has been developped a few years ago with Web IDE, to manage Purchase Orders that can't be with standard tile.

Today, I have to make few changes on this app. So, I have migrated it on Visual Studio Code. 

At first sight, migration seems okay. But when I try to run the app (without making other changes than migration), it opens a blank page in my browser and there are error messages about standard component used by the app.

In my browser, I get :

  • Error : « failed to load JavaScript resource: sap/ui/s2p/mm/lib/reuse/text/library.js -  sap.ui.ModuleSystem » in Console tab.
  • Error below for file library.js in Network tab :

Request URL:        http://localhost:8080/resources/sap/ui/s2p/mm/lib/reuse/text/library.js
Request Method:   GET
Status Code:         404 NOT FOUND (from disk cache)
Remote Address:   [::1]:8080
Referrer Policy:     strict-origin-when-cross-origin

I sometimes have error directly in Visual Studio Code : « Failed to resolve library sap.ui.s2p.mm.lib.reuse.text: Could not find library "sap.ui.s2p.mm.lib.reuse.text" »

I have tried to change ui5.yaml file by adding a path under « backend » section like below, but it still KO.

 

          - path: /resources/sap/ui/s2p/mm/lib/reuse/text
            pathPrefix: /sap/bc/ui5_ui5/sap/MM_REUSE_TEXTS1
            url: https://my.backend.com
            client: "200"

 

 

Any idea of what I can’t do to fix this issue ?

Thanks in advance for your help.

Armelle

Accepted Solutions (0)

Answers (2)

Answers (2)

WouterLemaire
SAP Mentor
SAP Mentor

The way you try to solve it is correct in my opinion but maybe something is wrong with one of the paths. Here you have an example how I did this for a custom library (which I didn’t want to load locally) at line 29:   https://github.com/lemaiwo/detailcomponent/blob/93cac62bf0bdad73223fbc1fe87d58af81235b7a/ui5.yaml#L2... 

Armelle_R
Explorer
0 Likes

Thanks a lot for your answer and link to your app.

It works today, without any modifications in yaml file. It seems there was proxy issues (curl on library returned error 401), but nobody can told me what has been done or not. 

Armelle_R
Explorer
0 Likes

Thanks a lot for trying to help.

It works today, without any modifications in yaml file. It seems there was proxy issues (curl on library returned error 401), but nobody can told me what has been done or not.