Error: ResizeObserver is not defined #165
jackkemmish
started this conversation in
General
Replies: 3 comments 3 replies
-
|
Ah, the answer was a dynamic import: const MasonryMod = dynamic(() => import('masonic').then((mod) => mod.Masonry), { ssr: false }) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yeah, if you're rendering it on the server you need a global polyfill for it in v4 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I am trying to add the library to my RemixJS app. but i got same issue : ReferenceError: ResizeObserver is not defined |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, I am trying to use this package within Next.js 14.
In dev mode, I am getting
Error: ResizeObserver is not defined, and then build it errors with the same issue.Has anyone had this before?
I am using the minimal example:
Thanks,
Jack
Beta Was this translation helpful? Give feedback.
All reactions