# PDF not showing up and being replaced with Loading Modal

**URL:** https://pdfjs.community/t/pdf-not-showing-up-and-being-replaced-with-loading-modal/1676
**Category:** Technical Support
**Created:** [May 13, 2022, 3:31am UTC](https://pdfjs.community/t/pdf-not-showing-up-and-being-replaced-with-loading-modal/1676 "2022-05-13T03:31:44Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![karin](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@karin](https://pdfjs.community/u/karin)
#### Post date: [May 13, 2022, 3:31am UTC](https://pdfjs.community/t/pdf-not-showing-up-and-being-replaced-with-loading-modal/1676/1 "2022-05-13T03:31:44Z")

</div>

**Which product are you using?**

PDF Express plus (free version)

**PDF.js Express Version**

**Detailed description of issue**  
PDF is not showing up in webviewer and is instead being replaced by a loading modal

 ![Screen Shot 2022-05-12 at 9.28.24 PM](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/c4d49accd0b966adc1e2388d5321cc7d3ec21add.png)

My PDf files are being fetched correctly with no network error (i’m able to render this pdf in an isolated testing app so it’s not the pdf itself)

**Expected behaviour**  
Render PDF with correct tools from PDF express plus

**Does your issue happen with every document, or just one?**  
Every document (local in public folder), and every hosted pdf link

**Link to document**  
{Provide a link to the document in question if possible}

**Code snippet**

```javascript
import { useRef, useEffect } from "react";
import WebViewer from "@pdftron/pdfjs-express";

const DocumentViewer = () => {
  const viewer = useRef(null);

  useEffect(() => {
    WebViewer(
      {
        path: process.env.PUBLIC_URL + "/pdfjsexpress",
        initialDoc: process.env.PUBLIC_URL + "/pdfjsexpress/demo.pdf"
      },
      viewer.current,
    ).then((instance) => {
    });
  }, []);

  return (
    <div className="">
        <div className="header">React sample</div>
        <div className="webviewer" ref={viewer}></div>
    </div>
  );
};

export default DocumentViewer;

```

---

_[View the full topic](https://pdfjs.community/t/pdf-not-showing-up-and-being-replaced-with-loading-modal/1676)._
