# Developer Tools not working

**URL:** <https://forums.creativeclouddeveloper.com/t/developer-tools-not-working/3902>\
**Category:** UXP Plugin API\
**Tags:** ui, uxp, javascript\
**Created:** [November 16, 2021, 10:54pm UTC](https://forums.creativeclouddeveloper.com/t/developer-tools-not-working/3902 "2021-11-16T22:54:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdophoto](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pdophoto/32/1304_2.png) [@pdophoto](https://forums.creativeclouddeveloper.com/u/pdophoto)\
**Post date:** [November 16, 2021, 10:54pm UTC](https://forums.creativeclouddeveloper.com/t/developer-tools-not-working/3902/1 "2021-11-16T22:54:15Z")

</div>

Hi I keep getting “SyntaxError: Identifier ‘batchPlay’ has already been declared”  
So I made a small test plugin to try to fine where it’s hiding  
I uninstalled & re-install Photoshop & UXP Developer Tools  
I still get the same results and can’t develop plugins  
If someone can help, it would be greatly appreciated

```auto
const batchPlay = require("photoshop").action.batchPlay;
const app = require('photoshop').app;
const UXP = require("uxp");
const fs = require('fs');
const fs1 = require("uxp").storage.localFileSystem;
const exeModal = require('photoshop').core.executeAsModal;

 function init () {
if(app.activeDocument==null){return;}

doc = app.activeDocument;
docPath = doc.path;

}

// ##############################################################################

const fn13 = async () => {

showAlert("Hello World");

}

document.getElementById("btn13").addEventListener("click", function () { fn13 ()});

init();

VM10 index.js:1 Uncaught SyntaxError: Identifier 'batchPlay' has already been declared
    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 o._executeCallbacks (uxp://uxp-internal/domjs_scripts.js:2)
    at o._executeIfReady (uxp://uxp-internal/domjs_scripts.js:2)
    at Array.<anonymous> (uxp://uxp-internal/domjs_scripts.js:2)
    at o._executeCallbacks (uxp://uxp-internal/domjs_scripts.js:2)
    at o._executeIfReady (uxp://uxp-internal/domjs_scripts.js:2)
    at Array.<anonymous> (uxp://uxp-internal/domjs_scripts.js:2)
    at o._executeCallbacks (uxp://uxp-internal/domjs_scripts.js:2)
		
		
		

```

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [November 17, 2021, 10:33am UTC](https://forums.creativeclouddeveloper.com/t/developer-tools-not-working/3902/2 "2021-11-17T10:33:50Z")

</div>

Doesn’t look like that’s all the code you’re using. Could you maybe try searching all your project for `const batchPlay` string?

---

<div class="post-metadata">

**Author:** ![pdophoto](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pdophoto/32/1304_2.png) [@pdophoto](https://forums.creativeclouddeveloper.com/u/pdophoto)\
**Post date:** [November 17, 2021, 11:05am UTC](https://forums.creativeclouddeveloper.com/t/developer-tools-not-working/3902/3 "2021-11-17T11:05:49Z")

</div>

Thank you so much. You were of great help, made me think.  
I striped the project to it’s bear minimum and found that I made a newbie mistake: I included the index.js twice in the index.html

---

<div class="post-metadata">

**Author:** ![pklaschka](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pklaschka/32/3162_2.png) [@pklaschka](https://forums.creativeclouddeveloper.com/u/pklaschka)\
**Post date:** [November 18, 2021, 10:13am UTC](https://forums.creativeclouddeveloper.com/t/developer-tools-not-working/3902/4 "2021-11-18T10:13:26Z")

</div>

> [@pdophoto](#):
>
> I made a newbie mistake

Happens to all of us 😉 .

Thank you for posting the solution, though. In too many forums, many users would just post “I’ve solved it” without any further explanation or even delete the topic, so thank you for elaborating on what the issue was, since it might help others in the future 🙂
