# React plugin after removing and adding again not working

**URL:** <https://forums.creativeclouddeveloper.com/t/react-plugin-after-removing-and-adding-again-not-working/7382>\
**Category:** UXP Developer Tool\
**Tags:** react, uxp, indesign\
**Created:** [January 18, 2024, 4:17pm UTC](https://forums.creativeclouddeveloper.com/t/react-plugin-after-removing-and-adding-again-not-working/7382 "2024-01-18T16:17:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pernik](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@pernik](https://forums.creativeclouddeveloper.com/u/pernik)\
**Post date:** [January 18, 2024, 4:17pm UTC](https://forums.creativeclouddeveloper.com/t/react-plugin-after-removing-and-adding-again-not-working/7382/1 "2024-01-18T16:17:19Z")

</div>

When I create react plugin with UDT, everything runs fine. But when I remove plugin from UDT and add it again without any changes (button add plugin and select manifest.json), it shows empty panel and in debug is this error:

uxp://uxp-internal/webfs\_scripts.js:2 Uncaught Error: Failed to load script file: index.js  
Failed to invoke the stat. File Path: xxxxxxxxxxx/plugin/index.js  
at l (uxp://uxp-internal/webfs\_scripts.js:2)  
at s (uxp://uxp-internal/webfs\_scripts.js:2)  
at e.exports.readFileSync (uxp://uxp-internal/webfs\_scripts.js:2)  
at Object.readFileSync (uxp://uxp-internal/webfs\_scripts.js:2)  
at Object.readFileUrlSync (uxp://uxp-internal/domjs\_scripts.js:2)  
at e.exports.\_insertRemoteScript (uxp://uxp-internal/domjs\_scripts.js:2)  
at e.exports.\_checkScriptNode (uxp://uxp-internal/domjs\_scripts.js:2)  
at e.exports.appendChild (uxp://uxp-internal/domjs\_scripts.js:2)  
at e.exports.appendChild (uxp://uxp-internal/domjs\_scripts.js:2)  
at e.exports.appendChild (uxp://uxp-internal/domjs\_scripts.js:2)

---

<div class="post-metadata">

**Author:** ![casualMaleXL](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/casualmalexl/32/3457_2.png) [@casualMaleXL](https://forums.creativeclouddeveloper.com/u/casualMaleXL)\
**Post date:** [January 19, 2024, 4:35pm UTC](https://forums.creativeclouddeveloper.com/t/react-plugin-after-removing-and-adding-again-not-working/7382/2 "2024-01-19T16:35:44Z")

</div>

Did you follow the build instructions? Can you share your `manifest.json` and your maybe a screenshot of your plugin’s expanded file directory?

---

<div class="post-metadata">

**Author:** ![pernik](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@pernik](https://forums.creativeclouddeveloper.com/u/pernik)\
**Post date:** [January 19, 2024, 6:36pm UTC](https://forums.creativeclouddeveloper.com/t/react-plugin-after-removing-and-adding-again-not-working/7382/3 "2024-01-19T18:36:20Z")

</div>

Yes, I followed build instructions. The problem was, that I was loading manifest.json from “plugin” folder instead of “dist” folder, which is created after build process.  
Thank you for your help.
