jsPDF
jsPDF copied to clipboard
ES module shim issue
I am using lit element library. Using no transpiling, just es bare modules transformers and native JS, I am not able to import jsPDF into my app (using chrome). I especially would like this for dynamic imports but I can not.
import jsPDF from 'jspdf'
import { jsPDF } from 'jspdf'
Uncaught (in promise) SyntaxError: The requested module '../../@babel/runtime/helpers/typeof.js' does not provide an export named 'default' (at jspdf.es.min.js:51:8)
% npm list | grep jspdf
├── [email protected]
├── [email protected]
% node -v
v16.7.0
Have you triedimport * as jsPDF from 'jspdf'
Yes, still a problem.
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.
/unstale
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.
/unstale
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.
/unstale