Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of v2 sdk with Next.js #190

Open
arriye opened this issue Jan 17, 2024 · 2 comments
Open

Usage of v2 sdk with Next.js #190

arriye opened this issue Jan 17, 2024 · 2 comments

Comments

@arriye
Copy link

arriye commented Jan 17, 2024

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!

@patrick-fs
Copy link
Member

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)

@timtucker-dte
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants