cancel
Showing results for 
Search instead for 
Did you mean: 

Compilation error after adding a logging service to CAP application

TamiKo
Explorer
0 Kudos
198

Hello Experts!!

I added a logging service to my CAP application using the Enable Logging Service for Your Application guide, but I'm getting an error when deploying.

Why am I getting this compilation error: services.js:1:1: unknown file extension 'js' after adding a logging service to my CAP application?

Any ideas?

Accepted Solutions (0)

Answers (2)

Answers (2)

manjunath_ks1
Advisor
Advisor
0 Kudos

Hi,

One issue I see already is a possible typo, the first line is importing "shema", also it seems like you are not following the tutorial and using the risk management example so it's harder to know if this custom approach has some issues because we test the tutorial with our example application.

Cguttikonda
Explorer
0 Kudos

Hi tamiko,

Can you share your project structure?

Also do you have services.cds in your project.

TamiKo
Explorer
0 Kudos

Hi. Yes, I added. This part of the project is simple.