Skip to main content
Participant
March 4, 2024
Frage

Type error for servicePrincipalCredentialsBuilder()

  • March 4, 2024
  • 2 Antworten
  • 429 Ansichten

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"

 

Dieses Thema wurde für Antworten geschlossen.

2 Antworten

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.