Closed ReyMga closed 1 year ago
It works for next js, it was a configuration error from my side. Thank you!
Hi, our agents are offline at the moment. Please leave a message and we will get back to you as soon as possible.
Hello!
How did you solve the problem?
Hello!
How did you solve the problem?
@baptistejamin Might be related to server side rendering for Nextjs. Crisp has to be loaded client side only. A solution could be to put the configure
or load
method inside a useEffect
.
I installed the crisp-sdk-web in a Next.js project, but I am getting an error: "document is not defined".
Note: With a common react project (create-react-app) it works OK.