fullstory-browser-sdk
fullstory-browser-sdk copied to clipboard
Usage of v2 sdk with Next.js
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!
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)
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