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!
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.
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.