Preview Fails with "does not support previewing code using googleapis"

Hi all, I’m hitting a snag with v0.dev’s preview feature for my app, which schedules Google Calendar events between two users using the google calendar api.

The preview fails with the error: “v0 does not currently support previewing code using googleapis.” My setup uses a React frontend and should be using server-side Vercel API route. I added the service account api info as environment variables to the project and told v0 explicitly to stick to server side to avoid this preview fail issue.

Not sure what I am doing wrong, admittedly I am not too familiar with how vercel works so there’s hopefully an easy fix.

Let me know if there’s any specific information you need from me to help me trouble shoot this issue or implement it correctly. Thank you!

Hi, @realjuangalt :wave:

Thank you for sharing this! We are aware of this limitation, and the team are working on fixing this.

Appreciate your patience! We’ll loop back with updates.

I see, is there no way I can implement the google apis without losing preview at all? just so I don’t spend more time trying to work around it.

Also, any insight into what time line we are looking for the fix? as I was hoping for this to be a quick deployment.

Thank you!

has there been a fix to this

I am nearly done all my coding and I got this erorr as I was puttign environment fields in, but not google ones. Those have been in for 2+ weeks, any advice?

Hi, @arboroffice! I’ve moved your topic to this one as it’s about the same issue. We don’t have a fix for this just yet, but I just let the v0 team know. :folded_hands:

What’s the status of this? And can we remove the google apis and restore preview?

This is a real pain in the b**t bug. Once you add any code that references the googleapis, it turns off preview. And even deleting the googleapi code doesn’t turn it on. You are permanently stuck with preview off. The only way to get it back was to restore to a previous version. Any changes you made will be lost of course.

v0 was useless at architecting a workaround. Chatgpt suggested me use a google appscript post technique that allowed me to get form data in to google sheets and drive. This worked. The alternative was to put the google api code in a github repo and pull it on deploy.

1 Like

@wave2waveio Appreciate you sharing what worked for you!

Hopefully others in the community that run into this can also get through the workaround.

I’ll also share this with the v0 team.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.