Create event in google calendar
Unanswered
Ring-necked Duck posted this in #help-forum
Ring-necked DuckOP
Hello !
I'm using next.js to create a simple dynamic webapp. I'm new on it and use to use React in Vanilla.
I want, with a button, to create an event to people connectedto my app.
Yet, I have an error saying that
Do you know how I can do it? 🙂
I'm using next.js to create a simple dynamic webapp. I'm new on it and use to use React in Vanilla.
I want, with a button, to create an event to people connectedto my app.
Yet, I have an error saying that
window.gapi is undefined.Do you know how I can do it? 🙂
2 Replies
@Ring-necked Duck hi, could you plz elaborate your issue? say show us a code snippet around window.gapi?
plus do you use Next.js or pure React.js only?
plus do you use Next.js or pure React.js only?
if you are using app router, you need to ensure you are setting the component as a client component, and in some circumstances checking if window is undefined before returning anything.