cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Visual Studio Code - Issues to access standard librar...

09-26-2024 10:06 AM
Armelle_R Explorer
1066 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes
View Entire Topic
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.