Cannot save custom code

I’m getting an error popup in UI Builder when trying to save my custom code. It seems to be saved actually, but the generated result in the running page does not change.

Application ID: 5BDF0E64-9F03-6F8E-FF75-0E183AF61100
page: recipes-detail
on-click handler for the print icon

Oops. An internal error [4ca23023ef92fcc6138d06fe53c17e18] has occurred. We are working on it. Please try again later

Hello @Klaas_Klever,

I’ve found the following error in our logs:

Unexpected token '{'

Probably somewhere in the code there is an extra symbol { (or one is missing).
Hope this helps you find a gap in your code.

BTW we plan to make a custom code validation so any syntax errors will be shown immediately in the editor.

Regards,
Stanislaw

Alright,
Missing comma :neutral_face:

So, syntax validation would be really helpful

Thanks

We have an internal ticket (BKNDLSS-26426) to fix this. We’ll let you know when it’s ready.

Regards