Skip to main content
Participant
March 4, 2024
Question

Type error for servicePrincipalCredentialsBuilder()

  • March 4, 2024
  • 2 replies
  • 418 views

I am utilizing the adobe PDF services SDK in Node.js (typescript) as follows:

        const credentials = PDFServicesSdk.Credentials
            .servicePrincipalCredentialsBuilder()
            .withClientId(process.env.PDF_SERVICES_CLIENT_ID)
            .withClientSecret(process.env.PDF_SERVICES_CLIENT_SECRET)
            .build();

 

However I keep getting the following type error even though it is working as it should

Property 'servicePrincipalCredentialsBuilder' does not exist on type 'typeof Credentials'.ts(2339)

 

I did install the types for the node sdk, but that didn't help

@types15111019/adobe__pdfservices-node-sdk"

 

This topic has been closed for replies.

2 replies

Participant
April 10, 2024

The new v4 version released yesterday has built-in types, which should solve this issue.

Participant
April 9, 2024

Did you get a reply to this?  I'm having the same issue.