Hello! I’ve installed the Premiere Pro sample project found here.
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)
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>
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
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
npm install
npm run build
npm run fix-imports
Thanks so much for trying out UXP, letting us know about the issue, and developing for Premiere Pro!