I was giving this library a try as the documentation is very straightforward. I followed the instructions, added the library, then the code as shown below
and started the application. However, when I loaded the application homepage I got the next error in the terminal window and in the browser console:
I understand the error is being thrown during SSR because the window object is not available during SSR as it runs on the server, and the window object is only available on the client side.
The hotjar script is added to the head of the page and I have access to the variables on the developer console, which means it works, but I'm concerned the error might break something else (and gives you the feeling that something is broken)
Any thoughts on this one?
Thanks in advance for any assistance you can provide.
Hi!
I was giving this library a try as the documentation is very straightforward. I followed the instructions, added the library, then the code as shown below
and started the application. However, when I loaded the application homepage I got the next error in the terminal window and in the browser console:
I understand the error is being thrown during SSR because the
window
object is not available during SSR as it runs on the server, and thewindow
object is only available on the client side.The hotjar script is added to the
head
of the page and I have access to the variables on the developer console, which means it works, but I'm concerned the error might break something else (and gives you the feeling that something is broken)Any thoughts on this one?
Thanks in advance for any assistance you can provide.