You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding the markdown editor to a current NextJs client component, building fails with a rather generic ReferenceError: ResizeObserver is not defined.
Indeed, adding this to the component seems to have fixed the issue.
import ResizeObserver from 'resize-observer-polyfill';
global.ResizeObserver = ResizeObserver;
When adding the markdown editor to a current NextJs client component, building fails with a rather generic ReferenceError: ResizeObserver is not defined.
When adding the markdown editor to a current NextJs client component, building fails with a rather generic
ReferenceError: ResizeObserver is not defined
.I don't have time for a reproduction test right now (sorry), but a quick workaround is using the polyfill as described here: https://stackoverflow.com/a/78560100/271150
The text was updated successfully, but these errors were encountered: