Submit buttons breaking out of nothing

Out of nowhere, all the submit buttons in my application started immediately throwing this error when clicked:

> Cannot set property enabled of #<Object> which has only a getter

The buttons don’t even change to the “busy” state or trigger the corresponding API call.

I rolled the project back almost to the beginning, but the issue persists. This makes me think the problem might be related to the frontend in the V0 web environment, since the error does not occur when I access the preview URL.

Because my app requires login, I’m completely stuck and afraid of losing the last working version of my code.

I’ve already spent a lot of credits on the large model trying to fix this, but nothing has worked.

Any help would be greatly appreciated!

Help

1 Like

After wasting 3 hours trying to solve this problem, I decided to search on Google and saw your post. It happens to me too, and I can’t find a way to fix it. I thought it was something in my app and had to redo components, but in the end, it was a waste of time because those changes caused v0 to change everything in my app (components, functions, etc.).

Like you, I went back to an initial version where the error didn’t appear, and none of them work.

1 Like

Same here! and also spent 3-4 hours going in circles with v0 to no avail… Nonetheless, seeing this post gives me hope! I asked v0 chat if they had any updates or anything pushed recently but it’s not allowed to access that info. I’ll just go ahead and leave it to tomorrow and pray it’s a bug and resolved by then.

1 Like

Same issue across multiple projects. Must be a bug

1 Like

I’m also facing this error — sign-in works fine locally but breaks in both v0.dev and preview with Cannot set property 'enabled' of #<Object> which has only a getter. Hope this gets fixed soon.

1 Like

Same for me. I get the error in v0.dev in the branch that was working 3 days ago. It’s the same branch I’m running in production where I see no errors.

1 Like

Same for me. I get the same error in a branch that was working a few weeks ago that I haven’t touched

1 Like

Quick update:

Hey everyone, I downloaded the code from the last working version before the issue started, and when running it locally, everything works fine. This leads me to believe the problem might be related to the behavior of the button component or some specific function tied to it that only manifests in the preview environment within v0.

Still no solution for the issue, but I’m able to move forward with the project locally using another AI agent to assist me.

Apologies for the delay — we’re looking into this issue right now. Expect a fix up soon!

1 Like

This issue has now been fixed! The preview should no longer throw > Cannot set property enabled of #<Object> which has only a getter in any case.

3 Likes

New error: e.getAll is not a function.

Glad it’s fixed — thank you!

Solution works for med, thanks