fullstory-browser-sdk icon indicating copy to clipboard operation
fullstory-browser-sdk copied to clipboard

Usage of v2 sdk with Next.js

Open arriye opened this issue 1 year ago • 2 comments

Are there any samples with usage of the new v2 API with Next.js (v12)? I have to rollback to the 1.7.1 version otherwise it breaks the app with a ReferenceError. Thanks!

arriye avatar Jan 17 '24 07:01 arriye

Hi @arriye would you please provide the error output about the ReferenceError and when the error is thrown (i.e. during the build or at run time)

patrick-fs avatar Jan 29 '24 19:01 patrick-fs

Looking at this locally, the ReferenceError that shows up is that window is not defined.

See the following for details on the issue and examples for how to address it: https://blog.bitsrc.io/using-non-ssr-friendly-components-with-next-js-916f38e8992c

timtucker-dte avatar Sep 23 '24 16:09 timtucker-dte