Which product are you using?
PDF.js Express Viewer
PDF.js Express Version
8.7.0
Detailed description of issue
I try to use pdfjs express with importmap because I don’t have any JS compiler on my application.
Viewer is loaded from jspm.io:
<script type="importmap" data-turbo-track="reload">{
"imports": {
"@pdftron/pdfjs-express-viewer": "https://ga.jspm.io/npm:@pdftron/pdfjs-express-viewer@8.7.0/webviewer.min.js"
}
</script>
But on my JS file, the line import WebViewer from "@pdftron/pdfjs-express-viewer"
return me an error on console:
Uncaught (in promise) TypeError: WebViewer is not a function
Expected behaviour
The expected behaviour is that the import works without any JS error.
Does your issue happen with every document, or just one?
Issue happen on installation, before loading any PDF doc
Code snippet
{Provide a relevant code snippet}