cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a common library in BAS development

0 Kudos
1,736

Dear Experts,

I want to use common libraries (Controller, i18n etc ...) in BAS development. However, I'm in trouble because I don't know how to do it.

Regards,

rinn.

View Entire Topic
Marian_Zeis
Active Contributor

We had the same problem.

We also transferred from WebIDE and the solution was relatively simple, to use the library from within your workspace:

Of course, the library must be referenced in the manifest.
Also, in your ui5.yaml an additional item under:

server:
  customMiddleware:
    - name: fiori-tools-servestatic
      afterMiddleware: compression
      configuration:
        paths:
          - path: /resources/namespaceoflibrary
            src: /home/user/projects/librarynfolderame/pointtolibraryjs


Sorry for the late reply.

It was helpful while searching for a way to achieve it. thank you.

I'm sorry I couldn't make it the best answer ...

But I really appreciate it!

Imran05
Product and Topic Expert
Product and Topic Expert
0 Kudos
Worked like a charm for me. Thank you @Marian_Zeis for saving my day !!