# Install PDF with importmap

**URL:** https://pdfjs.community/t/install-pdf-with-importmap/2159
**Category:** Technical Support
**Tags:** pdfjs-express
**Created:** [November 12, 2022, 9:45am UTC](https://pdfjs.community/t/install-pdf-with-importmap/2159 "2022-11-12T09:45:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vincent](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/vincent/32/1103_2.png) [@vincent](https://pdfjs.community/u/vincent)
#### Post date: [November 12, 2022, 9:45am UTC](https://pdfjs.community/t/install-pdf-with-importmap/2159/1 "2022-11-12T09:45:49Z")

</div>

**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](http://jspm.io):

```javascript
<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:

```javascript
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}

---

<div class="post-metadata">

### Author: ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)
#### Post date: [November 14, 2022, 4:42pm UTC](https://pdfjs.community/t/install-pdf-with-importmap/2159/3 "2022-11-14T16:42:51Z")

</div>

Hi there,

Thank you for contacting pdf.js express forums,

I am not familiar with importmap instantiation but can you try the following guides:

- Copying static files in this react example:  
[Integrate React & JavaScript PDF Viewer | PDF.js Express Viewer SDK](https://pdfjs.express/documentation/get-started-viewer/react#3.-place-webviewer-into-a-component)

- Troubleshooting steps for angular example:  
[Angular project WebViewer integration issues | Documentation](https://pdfjs.express/documentation/get-started/angular/angular-integration-issues)

If these do not apply to you, can you share any screenshots or a minimal runnable sample project to troubleshoot?

Thank you in advance.

Best regards,  
Kevin Kim

Share how you are using PDF.js Express in your organization you could win a **$500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free**. Learn more [here](https://utm.guru/ueQNw)
