You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jsPDF@1.5.3 does not yet support ES style module imports/exports. We are currently working on a new release with modern module formats (see e.g. #2804). Your example should work with the files that are currently in the dist folder of this repo.
In my case, I am using systemjs to load ES modules. In the test module, I import the jsPDF type from the jspdf module as shown below:
However when you attempt to instantiate a 'jsPDF' object, the "jsPDF is not a constructor" exception has occured.
Here is a runnable example
How to import the 'jsPDF' module correctly?
The text was updated successfully, but these errors were encountered: