TypeError: default.a.convert is not a function
See original GitHub issueHi, I am facing an issue with the latest version of jspdf in the react project.
This is an error that I am getting in the console.
jspdf.es.min.js:128 Uncaught (in promise) TypeError: _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default.a.convert is not a function
at new t (jspdf.es.min.js:128)
And, here is a code snippet using the latest version -
I tried adding the below packages as external in the webpack, which also didn’t help.
canvg, html2canvas, dompurify
Also, the same code snippet works when I downgraded the version to 2.3.1.
Pls, suggest if there is something I am missing as I am aiming to use the latest one.
Thanks
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:10
Top Results From Across the Web
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >react__WEBPACK_IMPORTED_...
javascript - TypeError: react__WEBPACK_IMPORTED_MODULE_0___default(...) is not a function - Stack Overflow. Stack Overflow for Teams – Start collaborating and ...
Read more >is not a function or its return value is not iterable in ReactJs ...
TypeError : react__WEBPACK_IMPORTED_MODULE_0_default is not a function or its return value is not iterable 1 | import useState from 'react'; ...
Read more >TypeError: then is not a function in JavaScript | bobbyhadz
The "then is not a function" error occurs when the then() method is called on a value that is not a promise. To...
Read more >How to Handle JavaScript Uncaught TypeError: “x” is Not a ...
The Javascript error TypeError: "x" is not a function occurs when there is an attempt to call a function on a value or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any update on the resolution for this?
I am currently having this issue, I am on the current version and have tried downgrading as well as adding the .babelrc.json file to my root project folder. Any updates to a resolution?