# Custom-coded component works in dev mode, cant drop it in the editor, get this error

**URL:** <https://community.weweb.io/t/custom-coded-component-works-in-dev-mode-cant-drop-it-in-the-editor-get-this-error/9504>\
**Category:** Developer corner\
**Created:** [July 2, 2024, 10:33pm UTC](https://community.weweb.io/t/custom-coded-component-works-in-dev-mode-cant-drop-it-in-the-editor-get-this-error/9504 "2024-07-02T22:33:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahdi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mahdi](https://community.weweb.io/u/mahdi)\
**Post date:** [July 2, 2024, 10:33pm UTC](https://community.weweb.io/t/custom-coded-component-works-in-dev-mode-cant-drop-it-in-the-editor-get-this-error/9504/1 "2024-07-02T22:33:46Z")

</div>

2 components I build over a month a go get drag and dropped fine. New ones arent showing up, i tested with identical one from before and still same issue. I get this error in console:

Uncaught TypeError: Cannot destructure property ‘PostgrestClient’ of ‘La(…)’ as it is undefined.  
at manager.js:1:250919  
at manager.js:1:419799  
at manager.js:1:419803

@Joyce

Is an issue from weweb’s side? Thanks

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [July 3, 2024, 6:17am UTC](https://community.weweb.io/t/custom-coded-component-works-in-dev-mode-cant-drop-it-in-the-editor-get-this-error/9504/2 "2024-07-03T06:17:16Z")

</div>

The code you have would be useful. I also moved this thread to developers section. 👍
