# 'instance' is not defined

**URL:** <https://pdfjs.community/t/instance-is-not-defined/1302>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [January 18, 2022, 4:39am UTC](https://pdfjs.community/t/instance-is-not-defined/1302 "2022-01-18T04:39:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![user59](https://avatars.discourse-cdn.com/v4/letter/u/74df32/32.png) [@user59](https://pdfjs.community/u/user59)\
**Post date:** [January 18, 2022, 4:39am UTC](https://pdfjs.community/t/instance-is-not-defined/1302/1 "2022-01-18T04:39:27Z")

</div>

**Which product are you using?**

PDF.js-based viewer

**PDF.js Express Version**

^8.1.1

**Detailed description of issue**  
{Description here}  
Hello, Mr. Logan, I am a student trying to learn how to use pdF.js viewer. My project is the React project written with TS. When I tried to manipulate the viewer using the config.js file, the error “‘instance’ is not defined” occurred and the configuration in the file did not take effect. How do I edit the config.js file? Can you provide a demo for my reference? Thanks a million!

**Expected behaviour**  
{Provide a screenshot or description of the expected behaviour}

**Does your issue happen with every document, or just one?**  
{Answer here}

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

**Code snippet**  
{Provide a relevant code snippet}  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/1d4519705848fedbfa360d3987d07644cfa8d675.png)  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/8e692f4aff7158df09156e9f0258947893638e23.png)  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/c2900f9bd66a69146e3df59f471e82bc4f853c88.png)  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/9d8655b69db4734c3664a295fe0376ce5caaf7a9.png)

I tried to write this, but the configuration didn’t work either.  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/595f6ccddab8513c351df93aff0faee7672b782d.png)

LisenceKey is registered for the online domain, but is disabled.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/0196f387076f2e5ec475005cd177d9ab01e4c15c.png)  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ed1f59de0c2036c7ae2b3d194cf98849f6d6606f.png)

---

_[View the full topic](https://pdfjs.community/t/instance-is-not-defined/1302)._
