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

SAP CAP + Fiori Elements + fiori-tools-servestatic

T1mey
Active Participant
477
Hello all,
 
we are facing some issues since a few days with loading a custom lib. It seems that a 
 
cds watch 
 
isn't serving paths of a Fiori elements app correctly which are configured over the middleware task fiori-tools-servestatic. The log says that it is served but over the browser we are not able to access it.
Over a ui serve of the app it's working.
 
server:
  customMiddleware:   
    - name: fiori-tools-servestatic
      afterMiddleware: compression
      configuration:
        paths:
          - path: /testIT
            src: "/home/user/projects/myproject/test"
 
As a result custom libs can not be loaded in BAS / Build Code when running cds watch.
 
CAP version is 9, but it is not working with the latest 8 version neither. 
"cds-plugin-ui5": "^0.13.0" ist in use as well.
 
Anybody an idea what has changed?

Accepted Solutions (0)

Answers (1)

Answers (1)

Marian_Zeis
Active Contributor

You can role back the ui5 CDs plugin to 0.12.1 or wait for the fix.

A fix is Currently already in development: https://github.com/ui5-community/ui5-ecosystem-showcase/pull/1224

T1mey
Active Participant
0 Likes
wow ... quick and helpful answer 😉