[Resolved] CODEBUILD failed after code change, reverting changes doesn't help (localhost component works, no errors)

Me and my colleague developer are building custom component with canvas and have it on Github.
Today we’ve updated the last build and it was working, we tested it.

Then we added 1 line of code:

     this.$emit('trigger-event', { name: 'change', event: { value: '' } });

and got “CODEBUILD failed”

Screenshot 2023-03-10 at 19.32.01

:bangbang: We removed that line of code (reverted to last working version) but “CODEBUILD failed” doesn’t go since it’s first appear :bangbang:

I have found this ticket: [solved] CODEBUILD_FAILED error for custom element that was building fine 3 days ago
but we don’t have any typescript and any dependencies in the component…

How to fix this?
Is there any way to debug that errors? why CODEBUILD fails? we are spending a lot of time to fix things that are unpredictable and we have no idea why they happen.

Build it locally to see what’s wrong.

It works on localhost with no errors in console. It was building yesterday from Github as well.

The build process is different from the development process.
Build it locally and see what error you have.

no errors at all anywhere. we reverted changes to previous build that was building successfully and used for 3 days in Weweb from Github, but CODEBUILD_ERROR still shown.

If you did a clean install + build of your repo and it builds correctly then maybe you should talk with weweb team.
But I would double check with a clean local build first.

1 Like

Thank you, that really helped. Clean install + Ive just copied code and no codebuild error

I want to request weweb team to add log of "codebuild fail " case on component page. This will help to fix issues.