Next.js Discord

Discord Forum

React Active-Table - DOMParser is not defined

Answered
Atlantic horse mackerel posted this in #help-forum
Open in Discord
Original message was deleted.
Answered by joulev
The component looks like it’s not ssr-safe, in that case you have to use next/dynamic with ssr: false
View full answer

5 Replies

It seems that you were trying to use it on the server component, you should use it on the client component
Original message was deleted
The component looks like it’s not ssr-safe, in that case you have to use next/dynamic with ssr: false
Answer
enable it on the component that is not ssr safe
in this case, const ActiveTable = dynamic(...)