Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jspdf :2.5.1 Error Property 'setHeight' does not exist #3722

Open
princegupta1131 opened this issue Apr 4, 2024 · 0 comments
Open

jspdf :2.5.1 Error Property 'setHeight' does not exist #3722

princegupta1131 opened this issue Apr 4, 2024 · 0 comments

Comments

@princegupta1131
Copy link

Hi Team,

While fixing the vulnerabilities, I have upgraded the jspdf version "jspdf": "1.5.3", to "jspdf": "2.5.1",
but while running I am getting the below error. could you please suggest to me how we can fix this setHeight method
is not working in the latest version

error TS2551: Property 'setHeight' does not exist on type '{ width: number; getWidth: () => number; height: number; getHeight: () => number; }'. Did you mean 'getHeight'?

269       pdf.internal.pageSize.setHeight(imageHeight);
                               ~~~~~~~~~

 node_modules/jspdf/types/index.d.ts:945:9
   945         getHeight: () => number;
               ~~~~~~~~~
   'getHeight' is declared here.
   ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant