Hey, in my CRA i was using calendly like:
<PopupButton
url="https://calendly.com/carty-abc/30min"
rootElement={document.getElementById("root")}
className="group w-fit inline-flex self-center justify-center px-4 py-2 gap-1 border border-transparent text-base font-medium rounded-full bg-[#323232] text-white hover:bg-[#2e3751] transition duration-300 ease-in-out"
text={
<>
Schedule
<span className="w-0 overflow-hidden inline-block transition-all duration-300 group-hover:w-5">
<ArrowRight
width={18}
className="text-xs opacity-0 translate-x-0 transition-all duration-300 group-hover:opacity-100 "
/>
</span>
</>
}
/>
When i moved this to Next, i was facing error: [react-calendly]: PopupModal rootElement property cannot be undefined
Then i changed to rootElement={document.body}
Now I am seeing this new error in console. (photo attached).
Although my calendly is scheduling things just fine. Anyone know what this error is about?