The Wayback Machine - https://web.archive.org/web/20261119144639/https://github.com/vercel/next.js/discussions/17618
Skip to content
Discussion options

You must be logged in to vote

As you said, ResizeObserver is a browser API that is not available in Node.js, so when Next.js tries to server-render the page it will fail.

The solution here is to use next/dynamic and load the component only in the browser 👍 .

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jonasgroendahl
Comment options

Answer selected by lfades
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants