Skip to main content
Question

docusign is not defined in react ts app


Forum|alt.badge.img+2

Hello Docusign community,

I'm currently integrating Docusign's embedded signature feature into my React TypeScript application. I've followed the steps in the documentation and installed the necessary dependencies, but I'm encountering an error where 'docusign' is not defined. This error appears multiple times throughout my code (e.g., Line 112:26). Can anyone help me understand why this error is occurring and how I can resolve it?  here is an image of what is displayed in my browser console:

 Thanks !

3 replies

Forum|alt.badge.img+2
  • Author
  • Newcomer
  • 3 replies
  • May 7, 2024

and I have a lot of these errors on my vscode terminal:

 


Forum|alt.badge.img+1
  • Newcomer
  • 1 reply
  • September 11, 2024

Hey @bouba, getting the same error. Were you able to find a solution here?


Forum|alt.badge.img+2
  • Author
  • Newcomer
  • 3 replies
  • September 17, 2024

Hey, I fixed this solution by implementing docusign authentication on my backend server in java spring boot. After authenticating my application, I request via docusign API for embeddedSigning still using java. and then I return the view url ViewUrl to my frontend react application to allow user to sign throught my app.

You can do this with any backend server whether node, php or java.

 

These links helps me a lot:

https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-focused-view/

and 

https://www.docusign.com/blog/developers/the-problems-iframes

and

https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-in-cors-app-embedded/

In my case i mixed the last link and the first link to make my app work.