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

Angular- jsPDF warnings, uncexpected tocken and jsPDF.fromHTML is not a function #2870

Closed
hyzhang6639 opened this issue Aug 23, 2020 · 3 comments

Comments

@hyzhang6639
Copy link

hyzhang6639 commented Aug 23, 2020

The issue is same on the below issue:

https://stackoverflow.com/questions/63431310/angular-jspdf-warnings-uncexpected-tocken-and-jspdf-fromhtml-is-not-a-function/63547200#63547200

My env is Angular 7.x. If jspdf downgrade to 1.5.3, pdf file can be generated successfully.

@HackbrettXXX
Copy link
Collaborator

The fromHTML function was removed, use html instead. Regarding the unexpected token issue: use import { jsPDF } from "jspdf". Regarding "the request of a dependency is an expression" see #2846. If 1.5.3 works for you, you can of course continue using it.

@HackbrettXXX
Copy link
Collaborator

Can I close this?

@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants