# CODEBUILD\_FAILED error

**URL:** <https://community.weweb.io/t/codebuild-failed-error/9552>\
**Category:** Developer corner\
**Created:** [July 5, 2024, 7:26am UTC](https://community.weweb.io/t/codebuild-failed-error/9552 "2024-07-05T07:26:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Silver](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Silver](https://community.weweb.io/u/Silver)\
**Post date:** [July 5, 2024, 7:26am UTC](https://community.weweb.io/t/codebuild-failed-error/9552/1 "2024-07-05T07:26:52Z")

</div>

Locally my code (custom element) works I can run “npm run serve” and use the element in developer mode in WeWeb. Also “npm run build” works without errors.

Where can I see the log of the build when uploading the component into “Coded components”. It just says Building and then in the end says CODEBUILD\_FAILED but there is no error message! No log file or anything. This is a stopper for us, where can I please find the log file?

---

<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 5, 2024, 7:48am UTC](https://community.weweb.io/t/codebuild-failed-error/9552/2 "2024-07-05T07:48:54Z")

</div>

You need to request this from WeWeb - very unpractical, but it’s how it is. Talk to them in the in-app chat. Usually the build fails when you have some issues like syntax errors, wrong imports etc. We’ve had our fair share of fights with the components, but all ended successfully 😃

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [July 5, 2024, 9:26am UTC](https://community.weweb.io/t/codebuild-failed-error/9552/3 "2024-07-05T09:26:18Z")

</div>

it may be a difference in the environment where the build is executed. maybe you have some global package installed locally. have you tried to build on a clean instance of node? (things like [nvm](https://github.com/nvm-sh/nvm) or [volta](https://volta.sh/) can help you)  
here in the community we may be ble to help you with a list of dependencies.
