jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

ES module shim issue

Open dman777 opened this issue 1 year ago • 8 comments

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

dman777 avatar Jul 05 '23 17:07 dman777

Have you triedimport * as jsPDF from 'jspdf'

spock123 avatar Jul 15 '23 22:07 spock123

Yes, still a problem.

MartinX3 avatar Aug 10 '23 15:08 MartinX3

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.

github-actions[bot] avatar Nov 09 '23 01:11 github-actions[bot]

/unstale

MartinX3 avatar Nov 09 '23 08:11 MartinX3

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.

github-actions[bot] avatar Feb 09 '24 01:02 github-actions[bot]

/unstale

MartinX3 avatar Feb 09 '24 09:02 MartinX3

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.

github-actions[bot] avatar May 10 '24 01:05 github-actions[bot]

/unstale

MartinX3 avatar May 10 '24 06:05 MartinX3