# Having difficulties running the Premiere Pro UXP plugin Sample Project

**URL:** https://forums.creativeclouddeveloper.com/t/having-difficulties-running-the-premiere-pro-uxp-plugin-sample-project/8887
**Category:** Premiere Pro
**Created:** [December 17, 2024, 8:09pm UTC](https://forums.creativeclouddeveloper.com/t/having-difficulties-running-the-premiere-pro-uxp-plugin-sample-project/8887 "2024-12-17T20:09:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![johnpjenn](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@johnpjenn](https://forums.creativeclouddeveloper.com/u/johnpjenn)
#### Post date: [December 17, 2024, 8:09pm UTC](https://forums.creativeclouddeveloper.com/t/having-difficulties-running-the-premiere-pro-uxp-plugin-sample-project/8887/1 "2024-12-17T20:09:00Z")

</div>

Hello! I’ve installed the Premiere Pro sample project found here.

> **[GitHub - AdobeDocs/uxp-premiere-pro-samples](https://github.com/AdobeDocs/uxp-premiere-pro-samples/)**
>
> Contribute to AdobeDocs/uxp-premiere-pro-samples development by creating an account on GitHub.

I’ve followed the directions, installed dependencies, and loaded the UXP panel, but none of the buttons work. When looking at the debug console within Adobe UXP Developer Tools, I see the following error.

* * *

uxp://uxp-internal/domjs\_scripts.js:2 Uncaught ReferenceError: exports is not defined  
at index.js:2  
at e.exports.execScript (uxp://uxp-internal/domjs\_scripts.js:2)  
at l (uxp://uxp-internal/domjs\_scripts.js:2)  
at uxp://uxp-internal/domjs\_scripts.js:2  
at s.\_executeCallbacks (uxp://uxp-internal/domjs\_scripts.js:2)  
at s.\_executeIfReady (uxp://uxp-internal/domjs\_scripts.js:2)  
at Array. (uxp://uxp-internal/domjs\_scripts.js:2)  
at s.\_executeCallbacks (uxp://uxp-internal/domjs\_scripts.js:2)  
at s.done (uxp://uxp-internal/domjs\_scripts.js:2)  
at Object.s [as loadHtmlContent] (uxp://uxp-internal/domjs\_scripts.js:2)

* * *

I looked at index.js:2 and this is the line.

Object.defineProperty(exports, “\_\_esModule”, { value: true });

For the record, I’m on a 2021 Macbook Pro Apple M1 Max, running Adobe Premiere Pro (Beta)Version 25.2.0 BETA (Build 55).

Any idea how to fix this issue? Thanks!

---

<div class="post-metadata">

### Author: ![johnpjenn](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@johnpjenn](https://forums.creativeclouddeveloper.com/u/johnpjenn)
#### Post date: [December 17, 2024, 8:16pm UTC](https://forums.creativeclouddeveloper.com/t/having-difficulties-running-the-premiere-pro-uxp-plugin-sample-project/8887/2 "2024-12-17T20:16:21Z")

</div>

So, I just tried deleting line2

“Object.defineProperty(exports, “\_\_esModule”, { value: true });”

and the panel now works. But is deleting that line going to break anything else?

---

<div class="post-metadata">

### Author: ![dan2dublin](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/dan2dublin/32/4248_2.png) [@dan2dublin](https://forums.creativeclouddeveloper.com/u/dan2dublin)
#### Post date: [December 17, 2024, 11:40pm UTC](https://forums.creativeclouddeveloper.com/t/having-difficulties-running-the-premiere-pro-uxp-plugin-sample-project/8887/3 "2024-12-17T23:40:02Z")

</div>

Hi johnpjenn,  
This looks like a well-known issue when compiling ts into js. It won’t break anything if the line gets removed as you figured out (cleverly). Essentially, it’s just asking for a global exports that we did not need to define. One could also add `<script> var exports ={}; </script>` in the `<head>`

 ![Screenshot 2024-12-17 at 3.01.43 PM](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/d/dad65695988c0cdc6d0c891e166cf0389a2a0d0e.png)

It won’t be the ultimate fix - we’ll need to adjust something in the configuration. We’ll add an instruction for this temp fix in the sample .ReadMe for now.  
Thanks for jumping in on UXP, and thanks for developing for Premiere Pro.  
-DMc

---

<div class="post-metadata">

### Author: ![CathyDong](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@CathyDong](https://forums.creativeclouddeveloper.com/u/CathyDong)
#### Post date: [December 19, 2024, 7:13pm UTC](https://forums.creativeclouddeveloper.com/t/having-difficulties-running-the-premiere-pro-uxp-plugin-sample-project/8887/4 "2024-12-19T19:13:23Z")

</div>

Hi!

I have pushed the fix (probably not the final fix though) for this issue and updated the ReadMe correspondingly. Right now, you should be able to build the plugin by running the following command at the html directory in terminal

1. npm install
2. npm run build
3. npm run fix-imports

Thanks so much for trying out UXP, letting us know about the issue, and developing for Premiere Pro!
