Closed HaoboZ closed 2 years ago
This throws an error in next.js because instanceOf(Element) will not work for SSR. The usage of dynamic import isn't exactly a solution but a workaround to a problem that only involves typechecking. PropTypes.element should work for it instead.
This throws an error in next.js because instanceOf(Element) will not work for SSR. The usage of dynamic import isn't exactly a solution but a workaround to a problem that only involves typechecking. PropTypes.element should work for it instead.