I had added a custom CSS snippet where one { opening bracket was missing. Because of this, the rest of Bricks’ functionality was also being disturbed. However, the code still saved, and it looked fine inside the builder canvas — but it didn’t render correctly on the frontend.
Shouldn’t the builder show a linting error when saving code with such mistakes, so that the rest of the code doesn’t get disturbed?
In another case, I was adding custom JSON options for SwiperJS, and a , comma was missing. Because of this, none of the images were showing. If the builder had displayed an error when saving (like a JSON error), the issue with the images might not have happened and it would have been much easier to debug.
I’m not sure how AT handles error, but I believe that it will show the error, as you can see, the } is underlined, which I believe will mark the error. And that would be correct, as there is no opening curly bracket.
Bricks will show the error on the side, which is also totally fine.