How to use @sap-cloud-sdk/generator services in Angular project?
I found this library that can generate OData v4 services by metadata specifications (https://sap.github.io/cloud-sdk/docs/js/features/odata/generate-odata-client). As I understand from the documentation I can use it in the frontend application, right (https://sap.github.io/cloud-sdk/docs/js/guides/sdk-in-browser#workaround)?
I tried to do it, but not really successfully. With the help of the guide or with my custom set up:

I am getting the same node.js issue as a result (process is not defined):

Is it possible to use generated services in the frontend applications. What am I doing wrong?
Hi @egorwow70 ,
Thanks for raising this up;) Unfortunately, however, as @marikaner pointed out,
a little disclaimer upfront: frontend is not fully supported by the SDK and we are likely to drop frontend support in the next major version upgrade. If you would like to continue using the SDK beyond that it would be great to understand your use case.
If adding "process": false does not solve your issue, what's the new error message?
Is it the same error?
Also, could you please share the following information?
- angular version via
ng -v - node version via
node -v - npm version via
npm -v - SAP Cloud SDK version you used as dependency
Hello @jjtang1985
I have tried to put "process": false line to the config, have I done this in the right way you mean (attached screen)? Same issue is produced

ng verison & node version & npm version & OS:

SAP Cloud SDK version:

@jjtang1985
Hello,
I am sorry, but do you have any updates on the issue? I am asking this, because it will be better to understand as soon as possible wether it is possible to use library
Also one question about the roadmap. When will be dropped a full version of frontend support?
Hi @egorwow70 ,
Sorry for the delay.
I tried to use the same versions as you did, but I was not able to reproduce it. It would be hard to support without knowing how to reproduce. Maybe you can share more details.
Again, frontend is not fully supported by the SAP Cloud SDK, and we need some workaround to make it work. Unfortunately, it seems it does not solve your problem.
For the roadmap questions, I'll leave it to our PO: @marikaner .
Best regards, Junjie
Hi @egorwow70 ,
It would also be great, if you can share your use case, typically with the process, as shown in the error message.
I did some research and this stack overflow answer might be helpful. This blog post also explains more details about the approach above.
@egorwow70, we have not yet made a final decision on frontend support. To be fully transparent - I am not sure wether nowadays with the various SSR techniques this is something worth spending time on. Some of the more advanced features of the SDK will never be in client side code (some authentication mechanisms, everything that requires JWT). Additionally, from our interaction with users it seems that the interest in frontend support is limited.
This is why we are currently leaning towards fully dropping frontend support, in either version 4, possibly version 3 already.
This is why we are currently leaning towards fully dropping frontend support, in either version 4, possibly version 3 already.
I can confirm the statements. We'll not work on further frontend related topics, due to other priorities.